15:44:40 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126689 15:44:40 Running as SYSTEM 15:44:40 [EnvInject] - Loading node environment variables. 15:44:40 Building remotely on prd-ubuntu2204-docker-4c-16g-62475 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 15:44:41 [ssh-agent] Looking for ssh-agent implementation... 15:44:41 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:44:41 $ ssh-agent 15:44:41 SSH_AUTH_SOCK=/tmp/ssh-XXXXXX6ciVKs/agent.1560 15:44:41 SSH_AGENT_PID=1562 15:44:41 [ssh-agent] Started. 15:44:41 Running ssh-add (command line suppressed) 15:44:41 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_14207653641430524964.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_14207653641430524964.key) 15:44:41 [ssh-agent] Using credentials jenkins (jenkins-ssh) 15:44:41 The recommended git tool is: NONE 15:44:44 using credential jenkins-ssh 15:44:44 Wiping out workspace first. 15:44:44 Cloning the remote Git repository 15:44:44 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 15:44:44 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 15:44:44 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:44 > git --version # timeout=10 15:44:44 > git --version # 'git version 2.34.1' 15:44:44 using GIT_SSH to set credentials jenkins-ssh 15:44:44 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:44 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:48 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:48 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:49 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:49 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:49 using GIT_SSH to set credentials jenkins-ssh 15:44:49 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:49 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/89/126689/1 # timeout=10 15:44:49 > git rev-parse 503b324ce667b72c25a9adbc39d3bc6bbe90cf60^{commit} # timeout=10 15:44:49 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 15:44:49 Checking out Revision 503b324ce667b72c25a9adbc39d3bc6bbe90cf60 (refs/changes/89/126689/1) 15:44:49 > git config core.sparsecheckout # timeout=10 15:44:49 > git checkout -f 503b324ce667b72c25a9adbc39d3bc6bbe90cf60 # timeout=10 15:44:49 Commit message: "Fix tapi code style violations" 15:44:50 > git rev-parse FETCH_HEAD^{commit} # timeout=10 15:44:50 > git rev-list --no-walk 74450f51386fd7fd66fe1472371adcd21acce6d7 # timeout=10 15:44:50 > git remote # timeout=10 15:44:50 > git submodule init # timeout=10 15:44:50 > git submodule sync # timeout=10 15:44:50 > git config --get remote.origin.url # timeout=10 15:44:50 > git submodule init # timeout=10 15:44:50 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 15:44:50 ERROR: No submodules found. 15:44:53 provisioning config files... 15:44:53 copy managed file [npmrc] to file:/home/jenkins/.npmrc 15:44:53 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 15:44:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8986155714760885950.sh 15:44:53 ---> python-tools-install.sh 15:44:53 Setup pyenv: 15:44:53 * system (set by /opt/pyenv/version) 15:44:53 * 3.8.20 (set by /opt/pyenv/version) 15:44:53 * 3.9.20 (set by /opt/pyenv/version) 15:44:53 3.10.15 15:44:53 3.11.10 15:44:58 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-ffNa 15:44:58 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 15:44:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:03 lf-activate-venv(): INFO: Installing additional packages: lftools 15:45:28 lf-activate-venv(): INFO: Adding /tmp/venv-ffNa/bin to PATH 15:45:28 Generating Requirements File 15:45:52 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. 15:45:52 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 15:45:52 Python 3.11.10 15:45:52 pip 26.2.1 from /tmp/venv-ffNa/lib/python3.11/site-packages/pip (python 3.11) 15:45:53 aiohappyeyeballs==2.7.1 15:45:53 aiohttp==3.14.4 15:45:53 aiosignal==1.4.0 15:45:53 appdirs==1.4.4 15:45:53 argcomplete==3.7.2 15:45:53 aspy.yaml==1.3.0 15:45:53 attrs==26.1.0 15:45:53 autopage==0.6.0 15:45:53 beautifulsoup4==4.15.0 15:45:53 boto3==1.43.108 15:45:53 botocore==1.43.108 15:45:53 bs4==0.0.2 15:45:53 certifi==2026.7.22 15:45:53 cffi==2.1.1 15:45:53 cfgv==3.5.0 15:45:53 chardet==7.6.0 15:45:53 charset-normalizer==3.5.2 15:45:53 click==8.5.0 15:45:53 cliff==4.16.0 15:45:53 cmd2==4.2.4 15:45:53 cryptography==3.3.2 15:45:53 debtcollector==3.1.0 15:45:53 decorator==5.3.1 15:45:53 defusedxml==0.7.1 15:45:53 Deprecated==1.3.1 15:45:53 distlib==0.4.3 15:45:53 dnspython==2.8.0 15:45:53 docker==7.2.0 15:45:53 dogpile.cache==1.5.0 15:45:53 durationpy==0.11 15:45:53 email-validator==2.3.0 15:45:53 filelock==4.0.12 15:45:53 frozenlist==1.8.0 15:45:53 future==1.0.0 15:45:53 gitdb==4.0.12 15:45:53 GitPython==3.2.0 15:45:53 httplib2==0.30.2 15:45:53 identify==2.6.20 15:45:53 idna==3.20 15:45:53 importlib-resources==1.5.0 15:45:53 iso8601==2.1.0 15:45:53 Jinja2==3.1.6 15:45:53 jmespath==1.1.0 15:45:53 jsonpatch==1.33 15:45:53 jsonpointer==3.1.1 15:45:53 jsonschema==4.26.0 15:45:53 jsonschema-specifications==2025.9.1 15:45:53 keystoneauth1==5.17.0 15:45:53 kubernetes==36.0.3 15:45:53 lftools==0.37.23 15:45:53 lxml==6.1.3 15:45:53 markdown-it-py==4.2.0 15:45:53 MarkupSafe==3.0.4 15:45:53 mdurl==0.1.2 15:45:53 msgpack==1.2.3 15:45:53 multi_key_dict==2.0.3 15:45:53 multidict==6.9.1 15:45:53 munch==4.0.0 15:45:53 netaddr==1.3.0 15:45:53 niet==1.4.2 15:45:53 nodeenv==1.11.0 15:45:53 oauth2client==4.1.3 15:45:53 oauthlib==4.0.0 15:45:53 openstacksdk==4.20.0 15:45:53 os-service-types==1.9.0 15:45:53 osc-lib==4.7.0 15:45:53 oslo.config==10.7.0 15:45:53 oslo.context==6.5.0 15:45:53 oslo.i18n==6.9.0 15:45:53 oslo.log==8.3.2 15:45:53 oslo.serialization==5.11.0 15:45:53 oslo.utils==10.2.0 15:45:53 packaging==26.3 15:45:53 pbr==7.0.3 15:45:53 platformdirs==4.12.3 15:45:53 prettytable==3.18.0 15:45:53 prompt_toolkit==3.0.53 15:45:53 propcache==0.5.4 15:45:53 psutil==7.2.2 15:45:53 pyasn1==0.6.4 15:45:53 pyasn1_modules==0.4.2 15:45:53 pycparser==3.0 15:45:53 pygerrit2==2.0.15 15:45:53 PyGithub==2.10.0 15:45:53 Pygments==2.21.0 15:45:53 PyJWT==2.15.1 15:45:53 PyNaCl==1.6.2 15:45:53 pyparsing==2.4.7 15:45:53 pyperclip==1.11.0 15:45:53 pyrsistent==0.20.0 15:45:53 python-dateutil==2.9.0.post0 15:45:53 python-discovery==1.6.1 15:45:53 python-heatclient==5.3.0 15:45:53 python-jenkins==1.8.3 15:45:53 python-keystoneclient==6.0.0 15:45:53 python-magnumclient==5.0.0 15:45:53 python-manilaclient==6.3.0 15:45:53 python-openstackclient==10.3.0 15:45:53 python-swiftclient==4.11.0 15:45:53 PyYAML==6.0.3 15:45:53 referencing==0.37.0 15:45:53 requests==2.34.2 15:45:53 requests-oauthlib==2.0.0 15:45:53 rfc3986==2.0.0 15:45:53 rich==15.0.0 15:45:53 rich-argparse==1.8.0 15:45:53 rpds-py==2026.9.1 15:45:53 rsa==4.9.1 15:45:53 ruamel.yaml==0.19.1 15:45:53 ruamel.yaml.clib==0.2.15 15:45:53 s3transfer==0.19.2 15:45:53 simplejson==4.2.0 15:45:53 six==1.17.0 15:45:53 smmap==5.0.3 15:45:53 soupsieve==2.10 15:45:53 stevedore==5.9.1 15:45:53 tabulate==0.10.0 15:45:53 toml==0.10.2 15:45:53 tomlkit==0.15.1 15:45:53 tqdm==4.70.1 15:45:53 typing_extensions==4.16.0 15:45:53 urllib3==1.26.20 15:45:53 virtualenv==21.14.5 15:45:53 wcwidth==0.9.2 15:45:53 websocket-client==1.9.2 15:45:53 wrapt==2.5.0 15:45:53 xdg==6.0.0 15:45:53 xmltodict==1.0.4 15:45:53 yarl==1.25.1 15:45:53 yq==4.4.0 15:45:53 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins18014894937982531967.sh 15:45:53 ---> uv-install.sh 15:45:53 Installing uv/uvx (latest) using shell installer 15:45:53 2026-10-06 15:45:53 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-HIlpN0.sh" [1] 15:45:53 downloading uv 0.12.23 x86_64-unknown-linux-gnu 15:45:54 installing to /home/jenkins/.local/bin 15:45:54 uv 15:45:54 uvx 15:45:54 everything's installed! 15:45:54 15:45:54 To add $HOME/.local/bin to your PATH, either restart your shell or run: 15:45:54 15:45:54 source $HOME/.local/bin/env (sh, bash, zsh) 15:45:54 source $HOME/.local/bin/env.fish (fish) 15:45:54 Adding install location to PATH 15:45:54 ---> Validating uv/uvx install 15:45:54 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:45:54 [EnvInject] - Injecting environment variables from a build step. 15:45:54 [EnvInject] - Injecting as environment variables the properties content 15:45:54 PYTHON=python3 15:45:54 15:45:54 [EnvInject] - Variables injected successfully. 15:45:54 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins15179047869389157837.sh 15:45:54 ---> tox-install.sh 15:45:54 + source /home/jenkins/lf-env.sh 15:45:54 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:54 ++ mktemp -d /tmp/venv-XXXX 15:45:54 + lf_venv=/tmp/venv-9uZS 15:45:54 + local venv_file=/tmp/.os_lf_venv 15:45:54 + local python=python3 15:45:54 + local options 15:45:54 + local set_path=true 15:45:54 + local install_args= 15:45:54 ++ 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 15:45:54 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:54 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:54 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:45:54 + true 15:45:54 + case $1 in 15:45:54 + venv_file=/tmp/.toxenv 15:45:54 + shift 2 15:45:54 + true 15:45:54 + case $1 in 15:45:54 + shift 15:45:54 + break 15:45:54 + case $python in 15:45:54 + local pkg_list= 15:45:54 + [[ -d /opt/pyenv ]] 15:45:54 + echo 'Setup pyenv:' 15:45:54 Setup pyenv: 15:45:54 + export PYENV_ROOT=/opt/pyenv 15:45:54 + PYENV_ROOT=/opt/pyenv 15:45:54 + 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 15:45:54 + 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 15:45:54 + pyenv versions 15:45:54 system 15:45:54 3.8.20 15:45:54 3.9.20 15:45:54 3.10.15 15:45:54 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:45:54 + command -v pyenv 15:45:54 ++ pyenv init - --no-rehash 15:45:54 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:45:54 for i in ${!paths[@]}; do 15:45:54 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:45:54 fi; done; 15:45:54 echo "${paths[*]}"'\'')" 15:45:54 export PATH="/opt/pyenv/shims:${PATH}" 15:45:54 export PYENV_SHELL=bash 15:45:54 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:45:54 pyenv() { 15:45:54 local command 15:45:54 command="${1:-}" 15:45:54 if [ "$#" -gt 0 ]; then 15:45:54 shift 15:45:54 fi 15:45:54 15:45:54 case "$command" in 15:45:54 rehash|shell) 15:45:54 eval "$(pyenv "sh-$command" "$@")" 15:45:54 ;; 15:45:54 *) 15:45:54 command pyenv "$command" "$@" 15:45:54 ;; 15:45:54 esac 15:45:54 }' 15:45:54 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:45:54 for i in ${!paths[@]}; do 15:45:54 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:45:54 fi; done; 15:45:54 echo "${paths[*]}"' 15:45:54 ++ 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 15:45:54 ++ 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 15:45:54 ++ 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 15:45:54 ++ export PYENV_SHELL=bash 15:45:54 ++ PYENV_SHELL=bash 15:45:54 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:45:54 +++ complete -F _pyenv pyenv 15:45:54 ++ lf-pyver python3 15:45:54 ++ local py_version_xy=python3 15:45:54 ++ local py_version_xyz= 15:45:54 ++ pyenv versions 15:45:54 ++ local command 15:45:54 ++ command=versions 15:45:54 ++ '[' 1 -gt 0 ']' 15:45:54 ++ shift 15:45:54 ++ case "$command" in 15:45:54 ++ command pyenv versions 15:45:54 ++ grep -E '^[0-9.]*[0-9]$' 15:45:54 ++ sed 's/^[ *]* //' 15:45:54 ++ awk '{ print $1 }' 15:45:55 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:45:55 +++ grep '^3' /tmp/.pyenv_versions 15:45:55 +++ sort -V 15:45:55 +++ tail -n 1 15:45:55 ++ py_version_xyz=3.11.10 15:45:55 ++ [[ -z 3.11.10 ]] 15:45:55 ++ echo 3.11.10 15:45:55 ++ return 0 15:45:55 + pyenv local 3.11.10 15:45:55 + local command 15:45:55 + command=local 15:45:55 + '[' 2 -gt 0 ']' 15:45:55 + shift 15:45:55 + case "$command" in 15:45:55 + command pyenv local 3.11.10 15:45:55 + for arg in "$@" 15:45:55 + case $arg in 15:45:55 + pkg_list+='tox ' 15:45:55 + for arg in "$@" 15:45:55 + case $arg in 15:45:55 + pkg_list+='virtualenv ' 15:45:55 + for arg in "$@" 15:45:55 + case $arg in 15:45:55 + pkg_list+='urllib3~=1.26.15 ' 15:45:55 + [[ -f /tmp/.toxenv ]] 15:45:55 + [[ ! -f /tmp/.toxenv ]] 15:45:55 + [[ -n '' ]] 15:45:55 + python3 -m venv /tmp/venv-9uZS 15:45:59 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9uZS' 15:45:59 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9uZS 15:45:59 + echo /tmp/venv-9uZS 15:45:59 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 15:45:59 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 15:45:59 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:45:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:59 + local 'pip_opts=--upgrade --quiet' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:45:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:45:59 + [[ -n '' ]] 15:45:59 + [[ -n '' ]] 15:45:59 + lf-venv-pip-install /tmp/venv-9uZS/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:59 + local venv_python=/tmp/venv-9uZS/bin/python3 15:45:59 + shift 15:45:59 + local upstream=https://pypi.org/simple 15:45:59 + /tmp/venv-9uZS/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 15:46:03 + return 0 15:46:03 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:46:03 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:46:03 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:46:03 + lf-venv-pip-install /tmp/venv-9uZS/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 15:46:03 + local venv_python=/tmp/venv-9uZS/bin/python3 15:46:03 + shift 15:46:03 + local upstream=https://pypi.org/simple 15:46:03 + /tmp/venv-9uZS/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 15:46:05 + return 0 15:46:05 + type python3 15:46:05 + true 15:46:05 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9uZS/bin to PATH' 15:46:05 lf-activate-venv(): INFO: Adding /tmp/venv-9uZS/bin to PATH 15:46:05 + PATH=/tmp/venv-9uZS/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 15:46:05 + return 0 15:46:05 + python3 --version 15:46:05 Python 3.11.10 15:46:05 + python3 -m pip --version 15:46:05 pip 26.2.1 from /tmp/venv-9uZS/lib/python3.11/site-packages/pip (python 3.11) 15:46:05 + python3 -m pip freeze 15:46:05 cachetools==7.2.1 15:46:05 colorama==0.4.6 15:46:05 distlib==0.4.3 15:46:05 filelock==4.0.12 15:46:05 packaging==26.3 15:46:05 platformdirs==4.12.3 15:46:05 pluggy==1.6.0 15:46:05 pyproject-api==1.11.3 15:46:05 python-discovery==1.6.1 15:46:05 tomli_w==1.2.0 15:46:05 tox==4.64.9 15:46:05 typing_extensions==4.16.0 15:46:05 urllib3==1.26.20 15:46:05 virtualenv==21.14.5 15:46:05 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins15689312634358281491.sh 15:46:05 [EnvInject] - Injecting environment variables from a build step. 15:46:05 [EnvInject] - Injecting as environment variables the properties content 15:46:05 PARALLEL=True 15:46:05 15:46:05 [EnvInject] - Variables injected successfully. 15:46:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins15245616140707360632.sh 15:46:05 ---> tox-run.sh 15:46:05 + 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 15:46:05 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:46:05 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:46:05 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:46:05 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 15:46:05 + source /home/jenkins/lf-env.sh 15:46:05 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:46:05 ++ mktemp -d /tmp/venv-XXXX 15:46:05 + lf_venv=/tmp/venv-EHIu 15:46:05 + local venv_file=/tmp/.os_lf_venv 15:46:05 + local python=python3 15:46:05 + local options 15:46:05 + local set_path=true 15:46:05 + local install_args= 15:46: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 15:46:05 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:05 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:46:05 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:46:05 + true 15:46:05 + case $1 in 15:46:05 + venv_file=/tmp/.toxenv 15:46:05 + shift 2 15:46:05 + true 15:46:05 + case $1 in 15:46:05 + shift 15:46:05 + break 15:46:05 + case $python in 15:46:05 + local pkg_list= 15:46:05 + [[ -d /opt/pyenv ]] 15:46:05 + echo 'Setup pyenv:' 15:46:05 Setup pyenv: 15:46:05 + export PYENV_ROOT=/opt/pyenv 15:46:05 + PYENV_ROOT=/opt/pyenv 15:46:05 + 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 15:46:05 + 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 15:46:05 + pyenv versions 15:46:05 system 15:46:05 3.8.20 15:46:05 3.9.20 15:46:05 3.10.15 15:46:05 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:46:05 + command -v pyenv 15:46:05 ++ pyenv init - --no-rehash 15:46:05 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:46:05 for i in ${!paths[@]}; do 15:46:05 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:46:05 fi; done; 15:46:05 echo "${paths[*]}"'\'')" 15:46:05 export PATH="/opt/pyenv/shims:${PATH}" 15:46:05 export PYENV_SHELL=bash 15:46:05 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:46:05 pyenv() { 15:46:05 local command 15:46:05 command="${1:-}" 15:46:05 if [ "$#" -gt 0 ]; then 15:46:05 shift 15:46:05 fi 15:46:05 15:46:05 case "$command" in 15:46:05 rehash|shell) 15:46:05 eval "$(pyenv "sh-$command" "$@")" 15:46:05 ;; 15:46:05 *) 15:46:05 command pyenv "$command" "$@" 15:46:05 ;; 15:46:05 esac 15:46:05 }' 15:46:05 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:46:05 for i in ${!paths[@]}; do 15:46:05 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:46:05 fi; done; 15:46:05 echo "${paths[*]}"' 15:46:05 ++ 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 15:46:05 ++ 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 15:46:05 ++ 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 15:46:05 ++ export PYENV_SHELL=bash 15:46:05 ++ PYENV_SHELL=bash 15:46:05 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:46:05 +++ complete -F _pyenv pyenv 15:46:05 ++ lf-pyver python3 15:46:05 ++ local py_version_xy=python3 15:46:05 ++ local py_version_xyz= 15:46:06 ++ pyenv versions 15:46:06 ++ local command 15:46:06 ++ command=versions 15:46:06 ++ '[' 1 -gt 0 ']' 15:46:06 ++ shift 15:46:06 ++ case "$command" in 15:46:06 ++ command pyenv versions 15:46:06 ++ sed 's/^[ *]* //' 15:46:06 ++ awk '{ print $1 }' 15:46:06 ++ grep -E '^[0-9.]*[0-9]$' 15:46:06 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:46:06 +++ sort -V 15:46:06 +++ grep '^3' /tmp/.pyenv_versions 15:46:06 +++ tail -n 1 15:46:06 ++ py_version_xyz=3.11.10 15:46:06 ++ [[ -z 3.11.10 ]] 15:46:06 ++ echo 3.11.10 15:46:06 ++ return 0 15:46:06 + pyenv local 3.11.10 15:46:06 + local command 15:46:06 + command=local 15:46:06 + '[' 2 -gt 0 ']' 15:46:06 + shift 15:46:06 + case "$command" in 15:46:06 + command pyenv local 3.11.10 15:46:06 + for arg in "$@" 15:46:06 + case $arg in 15:46:06 + pkg_list+='tox ' 15:46:06 + for arg in "$@" 15:46:06 + case $arg in 15:46:06 + pkg_list+='virtualenv ' 15:46:06 + for arg in "$@" 15:46:06 + case $arg in 15:46:06 + pkg_list+='urllib3~=1.26.15 ' 15:46:06 + [[ -f /tmp/.toxenv ]] 15:46:06 ++ cat /tmp/.toxenv 15:46:06 + lf_venv=/tmp/venv-9uZS 15:46:06 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9uZS from' file:/tmp/.toxenv 15:46:06 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9uZS from file:/tmp/.toxenv 15:46:06 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:46:06 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:46:06 + local 'pip_opts=--upgrade --quiet' 15:46:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:46:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:46:06 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:46:06 + [[ -n '' ]] 15:46:06 + [[ -n '' ]] 15:46:06 + lf-venv-pip-install /tmp/venv-9uZS/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:46:06 + local venv_python=/tmp/venv-9uZS/bin/python3 15:46:06 + shift 15:46:06 + local upstream=https://pypi.org/simple 15:46:06 + /tmp/venv-9uZS/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 15:46:07 + return 0 15:46:07 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:46:07 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:46:07 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:46:07 + lf-venv-pip-install /tmp/venv-9uZS/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 15:46:07 + local venv_python=/tmp/venv-9uZS/bin/python3 15:46:07 + shift 15:46:07 + local upstream=https://pypi.org/simple 15:46:07 + /tmp/venv-9uZS/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 15:46:08 + return 0 15:46:08 + type python3 15:46:08 + true 15:46:08 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9uZS/bin to PATH' 15:46:08 lf-activate-venv(): INFO: Adding /tmp/venv-9uZS/bin to PATH 15:46:08 + PATH=/tmp/venv-9uZS/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 15:46:08 + return 0 15:46:08 + [[ -d /opt/pyenv ]] 15:46:08 + echo '---> Setting up pyenv' 15:46:08 ---> Setting up pyenv 15:46:08 + export PYENV_ROOT=/opt/pyenv 15:46:08 + PYENV_ROOT=/opt/pyenv 15:46:08 + export PATH=/opt/pyenv/bin:/tmp/venv-9uZS/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 15:46:08 + PATH=/opt/pyenv/bin:/tmp/venv-9uZS/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 15:46:08 ++ pwd 15:46:08 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 15:46:08 + export PYTHONPATH 15:46:08 + export TOX_TESTENV_PASSENV=PYTHONPATH 15:46:08 + TOX_TESTENV_PASSENV=PYTHONPATH 15:46:08 + tox --version 15:46:08 4.64.9 from /tmp/venv-9uZS/lib/python3.11/site-packages/tox/__init__.py 15:46:08 + PARALLEL=True 15:46:08 + TOX_OPTIONS_LIST= 15:46:08 + [[ -n '' ]] 15:46:08 + case ${PARALLEL,,} in 15:46:08 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 15:46:08 + tox --parallel auto --parallel-live 15:46:08 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 15:46:10 checkbashisms: freeze> python -m pip freeze --all 15:46:10 docs: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:10 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 15:46:10 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 15:46:10 checkbashisms: pip==26.2.1,setuptools==84.0.0 15:46:10 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:10 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)' 15:46:10 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 15:46:12 checkbashisms: OK ✔ in 3.12 seconds 15:46:12 pre-commit: install_deps> python -I -m pip install pre-commit 15:46:14 pre-commit: freeze> python -m pip freeze --all 15:46:14 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.3,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 15:46:14 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:46:14 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)' 15:46:14 /usr/bin/cpan 15:46:14 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 15:46:14 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:15 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 15:46:15 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 15:46:16 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:16 buildcontroller: freeze> python -m pip freeze --all 15:46:16 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 15:46:16 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:16 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 15:46:16 + update-java-alternatives -l 15:46:16 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 15:46:16 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 15:46:16 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 15:46:16 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 15:46:16 update-alternatives: error: no alternatives for jaotc 15:46:16 update-alternatives: error: no alternatives for rmic 15:46:17 + java -version 15:46:17 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 15:46:17 + JAVA_VER=21.0 15:46:17 + echo 21.0 15:46:17 21.0 15:46:17 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 15:46:17 + javac -version 15:46:17 21.0 15:46:17 No java21 or newer available 15:46:17 + JAVAC_VER=21.0 15:46:17 + echo 21.0 15:46:17 + [ 21.0 -ge 21 ] 15:46:17 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 15:46:17 + echo No java21 or newer available 15:46:17 + exit 1 15:46:17 buildcontroller: exit 1 (0.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2776 15:46:17 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 15:46:17 buildcontroller: FAIL ✖ in 8.53 seconds 15:46:17 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 15:46:18 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 15:46:19 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:19 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 15:46:19 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 15:46:20 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 15:46:20 [INFO] Once installed this environment will be reused. 15:46:20 [INFO] This may take a few minutes... 15:46:20 pylint: freeze> python -m pip freeze --all 15:46:20 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.3,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 15:46:20 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}$' '{}' + 15:46:22 docs: freeze> python -m pip freeze --all 15:46:22 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 15:46:22 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 15:46:23 docs-linkcheck: freeze> python -m pip freeze --all 15:46:23 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 15:46:23 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 15:46:25 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:46:25 [INFO] Once installed this environment will be reused. 15:46:25 [INFO] This may take a few minutes... 15:46:25 docs: OK ✔ in 16.5 seconds 15:46:25 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 15:46:27 docs-linkcheck: OK ✔ in 18.12 seconds 15:46:27 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 15:46:30 [INFO] Installing environment for https://github.com/hhatto/autopep8. 15:46:30 [INFO] Once installed this environment will be reused. 15:46:30 [INFO] This may take a few minutes... 15:46:31 build_karaf_tests221: freeze> python -m pip freeze --all 15:46:31 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:31 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:31 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 15:46:31 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:31 build karaf in karaf221 with ./karaf221.env 15:46:31 build_karaf_tests221: exit 127 (0.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3325 15:46:31 build_karaf_tests221: FAIL ✖ in 6.53 seconds 15:46:31 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 15:46:33 build_karaf_tests71: freeze> python -m pip freeze --all 15:46:33 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:33 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:33 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 15:46:33 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:33 build karaf in karaf71 with ./karaf71.env 15:46:33 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:33 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3351 15:46:33 build_karaf_tests71: FAIL ✖ in 6.57 seconds 15:46:33 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 15:46:33 [INFO] Installing environment for https://github.com/perltidy/perltidy. 15:46:33 [INFO] Once installed this environment will be reused. 15:46:33 [INFO] This may take a few minutes... 15:46:37 ************* Module 2.2.1.test12_end2end 15:46:37 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 ************* Module common.test_utils 15:46:37 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:46:37 15:46:37 ----------------------------------- 15:46:37 Your code has been rated at 9.99/10 15:46:37 15:46:38 build_karaf_tests200: freeze> python -m pip freeze --all 15:46:38 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:38 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:46:38 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 15:46:38 ./build_karaf_for_tests.sh: 22: mvn: not found 15:46:38 build karaf in karafoc200 with ./karafoc200.env 15:46:38 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:46:38 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3381 15:46:38 build_karaf_tests200: FAIL ✖ in 6.6 seconds 15:46:38 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 15:46:38 pylint: exit 1 (17.90 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=3204 15:46:38 pylint: FAIL ✖ in 21.33 seconds 15:46:38 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 15:46:40 buildlighty: freeze> python -m pip freeze --all 15:46:40 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:40 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 15:46:40 ./build.sh: 7: mvn: not found 15:46:40 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 15:46:40 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3474 15:46:41 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 15:46:41 [INFO] Once installed this environment will be reused. 15:46:41 [INFO] This may take a few minutes... 15:46:44 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 15:46:44 [INFO] Once installed this environment will be reused. 15:46:44 [INFO] This may take a few minutes... 15:46:45 buildlighty: FAIL ✖ in 6.93 seconds 15:46:45 sims: freeze> python -m pip freeze --all 15:46:45 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:45 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 15:46:45 Using lighynode version 22.1.0.7 15:46:45 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 15:46:49 trim trailing whitespace.................................................Passed 15:46:49 fix end of files.........................................................Passed 15:46:49 check for added large files..............................................Passed 15:46:49 check for merge conflicts................................................Passed 15:46:49 check for case conflicts.................................................Passed 15:46:50 check json...............................................................Passed 15:46:50 mixed line ending........................................................Passed 15:46:50 Tabs remover.............................................................Passed 15:46:50 autopep8.................................................................Passed 15:46:52 perltidy.................................................................Passed 15:46:53 ShellCheck v0.11.0.......................................................Passed 15:46:58 prettier.................................................................Passed 15:46:59 yamllint.................................................................Passed 15:46:59 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 15:46:59 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 15:46:59 [INFO] Once installed this environment will be reused. 15:46:59 [INFO] This may take a few minutes... 15:47:08 gitlint..................................................................Passed 15:47:26 pre-commit: OK ✔ in 56.98 seconds 15:47:26 testsPCE: freeze> python -m pip freeze --all 15:47:27 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.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.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 15:47:27 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 15:47:27 pytest -q transportpce_tests/pce/test01_pce.py 15:49:27 EEEEEEEEEEEEEEEEEEEE [100%] 15:49:31 ==================================== ERRORS ==================================== 15:49:31 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 15:49:31 15:49:31 cls = 15:49:31 15:49:31 @classmethod 15:49:31 def setUpClass(cls): 15:49:31 # pylint: disable=bare-except 15:49:31 sample_files_parsed = False 15:49:31 time.sleep(20) 15:49:31 try: 15:49:31 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:31 "..", "..", "sample_configs", "honeynode-topo.json") 15:49:31 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 15:49:31 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 15:49:31 15:49:31 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:31 "..", "..", "sample_configs", "NW-simple-topology.json") 15:49:31 15:49:31 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 15:49:31 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 15:49:31 15:49:31 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:31 "..", "..", "sample_configs", "NW-for-test-5-4.json") 15:49:31 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 15:49:31 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 15:49:31 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:49:31 "..", "..", "sample_configs", "pce_portmapping_221.json") 15:49:31 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 15:49:31 cls.port_mapping_data = port_mapping.read() 15:49:31 sample_files_parsed = True 15:49:31 except PermissionError as err: 15:49:31 print("Permission Error when trying to read sample files\n", err) 15:49:31 sys.exit(2) 15:49:31 except FileNotFoundError as err: 15:49:31 print("File Not found Error when trying to read sample files\n", err) 15:49:31 sys.exit(2) 15:49:31 except: 15:49:31 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 15:49:31 sys.exit(2) 15:49:31 finally: 15:49:31 if sample_files_parsed: 15:49:31 print("sample files content loaded") 15:49:31 15:49:31 > cls.processes = test_utils.start_tpce() 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 15:49:31 transportpce_tests/pce/test01_pce.py:93: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 def start_tpce(): 15:49:31 if 'NO_ODL_STARTUP' in os.environ: 15:49:31 print('No OpenDaylight instance to start!') 15:49:31 return [] 15:49:31 print('starting OpenDaylight...') 15:49:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:49:31 process = start_lighty() 15:49:31 else: 15:49:31 process = start_karaf() 15:49:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:49:31 print('OpenDaylight started !') 15:49:31 else: 15:49:31 print('OpenDaylight failed to start !') 15:49:31 shutdown_process(process) 15:49:31 for pid in process_list: 15:49:31 shutdown_process(pid) 15:49:31 > sys.exit(1) 15:49:31 E SystemExit: 1 15:49:31 15:49:31 transportpce_tests/common/test_utils.py:234: SystemExit 15:49:31 ---------------------------- Captured stdout setup ----------------------------- 15:49:31 sample files content loaded 15:49:31 starting OpenDaylight... 15:49:31 starting KARAF (karaf) TransportPCE build... 15:49:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:49:31 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28a660> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28bc40> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28b420> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14e790040> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28b1a0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28bc40> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14be21da0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c277ce0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c277a60> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c277ce0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14be21940> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c28b1a0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c277a60> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14be22980> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c277a60> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c288400> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14be222a0> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c288400> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 15:49:31 15:49:31 cls = 15:49:31 func = . at 0x7fd14c288180> 15:49:31 when = 'setup' 15:49:31 reraise = (, ) 15:49:31 15:49:31 @classmethod 15:49:31 def from_call( 15:49:31 cls, 15:49:31 func: Callable[[], TResult], 15:49:31 when: Literal["collect", "setup", "call", "teardown"], 15:49:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:49:31 ) -> CallInfo[TResult]: 15:49:31 """Call func, wrapping the result in a CallInfo. 15:49:31 15:49:31 :param func: 15:49:31 The function to call. Called without arguments. 15:49:31 :type func: Callable[[], _pytest.runner.TResult] 15:49:31 :param when: 15:49:31 The phase in which the function is called. 15:49:31 :param reraise: 15:49:31 Exception or exceptions that shall propagate if raised by the 15:49:31 function, instead of being wrapped in the CallInfo. 15:49:31 """ 15:49:31 excinfo = None 15:49:31 instant = timing.Instant() 15:49:31 try: 15:49:31 > result: TResult | None = func() 15:49:31 ^^^^^^ 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:49:31 lambda: runtest_hook(item=item, **kwds), 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:49:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:49:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:49:31 yield 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:49:31 return (yield) 15:49:31 ^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:49:31 item.session._setupstate.setup(item) 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:49:31 col.setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:49:31 super().setup() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:49:31 self._request._fillfixtures() 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:49:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:49:31 fixturedef = self._get_active_fixturedef(argname) 15:49:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:49:31 fixturedef.execute(request=subrequest) 15:49:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:49:31 15:49:31 self = 15:49:31 request = > 15:49:31 15:49:31 def execute(self, request: SubRequest) -> FixtureValue: 15:49:31 """Return the value of this fixture, executing it if not cached.""" 15:49:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:49:31 # This needs to be done before checking if we have a cached value, since 15:49:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:49:31 # parametrization, they finalize themselves and fixtures depending on it 15:49:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:49:31 # See #4871 15:49:31 requested_fixtures_that_should_finalize_us = [] 15:49:31 for argname in self.argnames: 15:49:31 fixturedef = request._get_active_fixturedef(argname) 15:49:31 # Saves requested fixtures in a list so we later can add our finalizer 15:49:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:49:31 # down first. This is generally handled by SetupState, but still currently 15:49:31 # needed when this fixture is not parametrized but depends on a parametrized 15:49:31 # fixture. 15:49:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:49:31 15:49:31 # Check for (and return) cached value/exception. 15:49:31 if self.cached_result is not None: 15:49:31 request_cache_key = self.cache_key(request) 15:49:31 cache_key = self.cached_result[1] 15:49:31 try: 15:49:31 # Attempt to make a normal == check: this might fail for objects 15:49:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:49:31 cache_hit = bool(request_cache_key == cache_key) 15:49:31 except (ValueError, RuntimeError): 15:49:31 # If the comparison raises, use 'is' as fallback. 15:49:31 cache_hit = request_cache_key is cache_key 15:49:31 15:49:31 if cache_hit: 15:49:31 if self.cached_result[2] is not None: 15:49:31 exc, exc_tb = self.cached_result[2] 15:49:31 raise exc.with_traceback(exc_tb) 15:49:31 else: 15:49:31 return self.cached_result[0] 15:49:31 # We have a previous but differently parametrized fixture instance 15:49:31 # so we need to tear it down before creating a new one. 15:49:31 self.finish(request) 15:49:31 assert self.cached_result is None 15:49:31 15:49:31 # Add finalizer to requested fixtures we saved previously. 15:49:31 # We make sure to do this after checking for cached value to avoid 15:49:31 # adding our finalizer multiple times. (#12135) 15:49:31 finalizer = functools.partial(self.finish, request=request) 15:49:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:49:31 parent_fixture.addfinalizer(finalizer) 15:49:31 15:49:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:49:31 # which is executed last. 15:49:31 > assert not self._finalizers 15:49:31 ^^^^^^^^^^^^^^^^^^^^ 15:49:31 E AssertionError 15:49:31 15:49:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:49:31 =========================== short test summary info ============================ 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 15:49:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 15:49:31 20 errors in 123.81s (0:02:03) 15:49:31 sims: OK ✔ in 2 minutes 30.11 seconds 15:49:31 testsPCE: exit 1 (124.12 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4159 15:49:31 testsPCE: FAIL ✖ in 2 minutes 52.52 seconds 15:49:31 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 15:49:38 tests_tapi: freeze> python -m pip freeze --all 15:49:38 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:49:38 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 15:49:38 using environment variables from ./karaf221.env 15:49:38 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 15:51:19 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:51:28 ==================================== ERRORS ==================================== 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 15:51:28 @classmethod 15:51:28 def setUpClass(cls): 15:51:28 cls.init_failed = False 15:51:28 os.environ['JAVA_MIN_MEM'] = '1024M' 15:51:28 os.environ['JAVA_MAX_MEM'] = '4096M' 15:51:28 > cls.processes = test_utils.start_tpce() 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 15:51:28 transportpce_tests/tapi/test01_abstracted_topology.py:148: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 def start_tpce(): 15:51:28 if 'NO_ODL_STARTUP' in os.environ: 15:51:28 print('No OpenDaylight instance to start!') 15:51:28 return [] 15:51:28 print('starting OpenDaylight...') 15:51:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:51:28 process = start_lighty() 15:51:28 else: 15:51:28 process = start_karaf() 15:51:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:51:28 print('OpenDaylight started !') 15:51:28 else: 15:51:28 print('OpenDaylight failed to start !') 15:51:28 shutdown_process(process) 15:51:28 for pid in process_list: 15:51:28 shutdown_process(pid) 15:51:28 > sys.exit(1) 15:51:28 E SystemExit: 1 15:51:28 15:51:28 transportpce_tests/common/test_utils.py:234: SystemExit 15:51:28 ---------------------------- Captured stdout setup ----------------------------- 15:51:28 starting OpenDaylight... 15:51:28 starting KARAF (karaf221) TransportPCE build... 15:51:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dbb9c0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871e0bc40> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd873713060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871e0b100> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dbb880> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871e0b6a0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba0c0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2020> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba3e0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f25c0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871db9e40> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871e0b100> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871db9e40> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8744b7060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1bc0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1bc0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f0d60> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f07c0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2ac0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1300> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2ac0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1a80> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2fc0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1e40> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2020> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2340> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f2340> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f3240> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f3420> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f3560> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f23e0> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f1a80> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd871dba660> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 15:51:28 15:51:28 cls = 15:51:28 func = . at 0x7fd8719f3060> 15:51:28 when = 'setup' 15:51:28 reraise = (, ) 15:51:28 15:51:28 @classmethod 15:51:28 def from_call( 15:51:28 cls, 15:51:28 func: Callable[[], TResult], 15:51:28 when: Literal["collect", "setup", "call", "teardown"], 15:51:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:51:28 ) -> CallInfo[TResult]: 15:51:28 """Call func, wrapping the result in a CallInfo. 15:51:28 15:51:28 :param func: 15:51:28 The function to call. Called without arguments. 15:51:28 :type func: Callable[[], _pytest.runner.TResult] 15:51:28 :param when: 15:51:28 The phase in which the function is called. 15:51:28 :param reraise: 15:51:28 Exception or exceptions that shall propagate if raised by the 15:51:28 function, instead of being wrapped in the CallInfo. 15:51:28 """ 15:51:28 excinfo = None 15:51:28 instant = timing.Instant() 15:51:28 try: 15:51:28 > result: TResult | None = func() 15:51:28 ^^^^^^ 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:51:28 lambda: runtest_hook(item=item, **kwds), 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:51:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:51:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:51:28 yield 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:51:28 return (yield) 15:51:28 ^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:51:28 item.session._setupstate.setup(item) 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:51:28 col.setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:51:28 super().setup() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:51:28 self._request._fillfixtures() 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:51:28 item.funcargs[argname] = self.getfixturevalue(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:51:28 fixturedef = self._get_active_fixturedef(argname) 15:51:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:51:28 fixturedef.execute(request=subrequest) 15:51:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:51:28 15:51:28 self = 15:51:28 request = > 15:51:28 15:51:28 def execute(self, request: SubRequest) -> FixtureValue: 15:51:28 """Return the value of this fixture, executing it if not cached.""" 15:51:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:51:28 # This needs to be done before checking if we have a cached value, since 15:51:28 # if a dependent fixture has their cache invalidated, e.g. due to 15:51:28 # parametrization, they finalize themselves and fixtures depending on it 15:51:28 # (which will likely include this fixture) setting `self.cached_result = None`. 15:51:28 # See #4871 15:51:28 requested_fixtures_that_should_finalize_us = [] 15:51:28 for argname in self.argnames: 15:51:28 fixturedef = request._get_active_fixturedef(argname) 15:51:28 # Saves requested fixtures in a list so we later can add our finalizer 15:51:28 # to them, ensuring that if a requested fixture gets torn down we get torn 15:51:28 # down first. This is generally handled by SetupState, but still currently 15:51:28 # needed when this fixture is not parametrized but depends on a parametrized 15:51:28 # fixture. 15:51:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:51:28 15:51:28 # Check for (and return) cached value/exception. 15:51:28 if self.cached_result is not None: 15:51:28 request_cache_key = self.cache_key(request) 15:51:28 cache_key = self.cached_result[1] 15:51:28 try: 15:51:28 # Attempt to make a normal == check: this might fail for objects 15:51:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:51:28 cache_hit = bool(request_cache_key == cache_key) 15:51:28 except (ValueError, RuntimeError): 15:51:28 # If the comparison raises, use 'is' as fallback. 15:51:28 cache_hit = request_cache_key is cache_key 15:51:28 15:51:28 if cache_hit: 15:51:28 if self.cached_result[2] is not None: 15:51:28 exc, exc_tb = self.cached_result[2] 15:51:28 raise exc.with_traceback(exc_tb) 15:51:28 else: 15:51:28 return self.cached_result[0] 15:51:28 # We have a previous but differently parametrized fixture instance 15:51:28 # so we need to tear it down before creating a new one. 15:51:28 self.finish(request) 15:51:28 assert self.cached_result is None 15:51:28 15:51:28 # Add finalizer to requested fixtures we saved previously. 15:51:28 # We make sure to do this after checking for cached value to avoid 15:51:28 # adding our finalizer multiple times. (#12135) 15:51:28 finalizer = functools.partial(self.finish, request=request) 15:51:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:51:28 parent_fixture.addfinalizer(finalizer) 15:51:28 15:51:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:51:28 # which is executed last. 15:51:28 > assert not self._finalizers 15:51:28 ^^^^^^^^^^^^^^^^^^^^ 15:51:28 E AssertionError 15:51:28 15:51:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:51:28 =========================== short test summary info ============================ 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 15:51:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 15:51:28 51 errors in 109.21s (0:01:49) 15:51:28 tests_tapi: exit 1 (109.50 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4884 15:51:28 tests_tapi: FAIL ✖ in 1 minute 57.25 seconds 15:51:28 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 15:51:28 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 15:51:35 tests200: freeze> python -m pip freeze --all 15:51:35 tests221: freeze> python -m pip freeze --all 15:51:35 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:51:35 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 15:51:35 using environment variables from ./karafoc200.env 15:51:35 pytest -q transportpce_tests/oc200/test01_portmapping.py 15:51:35 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:51:35 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 15:51:35 using environment variables from ./karaf221.env 15:51:35 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 15:53:16 EEEEEEEEEEEEEEEEEEE [100%] 15:53:17 ==================================== ERRORS ==================================== 15:53:17 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 15:53:17 15:53:17 cls = 15:53:17 15:53:17 @classmethod 15:53:17 def setUpClass(cls): 15:53:17 > cls.processes = test_utils.start_tpce() 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 15:53:17 transportpce_tests/oc200/test01_portmapping.py:29: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 def start_tpce(): 15:53:17 if 'NO_ODL_STARTUP' in os.environ: 15:53:17 print('No OpenDaylight instance to start!') 15:53:17 return [] 15:53:17 print('starting OpenDaylight...') 15:53:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:17 process = start_lighty() 15:53:17 else: 15:53:17 process = start_karaf() 15:53:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:17 print('OpenDaylight started !') 15:53:17 else: 15:53:17 print('OpenDaylight failed to start !') 15:53:17 shutdown_process(process) 15:53:17 for pid in process_list: 15:53:17 shutdown_process(pid) 15:53:17 > sys.exit(1) 15:53:17 E SystemExit: 1 15:53:17 15:53:17 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:17 ---------------------------- Captured stdout setup ----------------------------- 15:53:17 starting OpenDaylight... 15:53:17 starting KARAF (karafoc200) TransportPCE build... 15:53:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2b83b420> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2914fec0> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2a8ef600> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2912b740> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2b83b420> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2a8ef600> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2914f880> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2914f6a0> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:53:17 15:53:17 cls = 15:53:17 func = . at 0x7fdb2914f600> 15:53:17 when = 'setup' 15:53:17 reraise = (, ) 15:53:17 15:53:17 @classmethod 15:53:17 def from_call( 15:53:17 cls, 15:53:17 func: Callable[[], TResult], 15:53:17 when: Literal["collect", "setup", "call", "teardown"], 15:53:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:17 ) -> CallInfo[TResult]: 15:53:17 """Call func, wrapping the result in a CallInfo. 15:53:17 15:53:17 :param func: 15:53:17 The function to call. Called without arguments. 15:53:17 :type func: Callable[[], _pytest.runner.TResult] 15:53:17 :param when: 15:53:17 The phase in which the function is called. 15:53:17 :param reraise: 15:53:17 Exception or exceptions that shall propagate if raised by the 15:53:17 function, instead of being wrapped in the CallInfo. 15:53:17 """ 15:53:17 excinfo = None 15:53:17 instant = timing.Instant() 15:53:17 try: 15:53:17 > result: TResult | None = func() 15:53:17 ^^^^^^ 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:17 lambda: runtest_hook(item=item, **kwds), 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:17 yield 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:17 return (yield) 15:53:17 ^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:17 item.session._setupstate.setup(item) 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:17 col.setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:17 super().setup() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:17 self._request._fillfixtures() 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:17 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:17 fixturedef = self._get_active_fixturedef(argname) 15:53:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:17 fixturedef.execute(request=subrequest) 15:53:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:17 15:53:17 self = 15:53:17 request = > 15:53:17 15:53:17 def execute(self, request: SubRequest) -> FixtureValue: 15:53:17 """Return the value of this fixture, executing it if not cached.""" 15:53:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:17 # This needs to be done before checking if we have a cached value, since 15:53:17 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:17 # parametrization, they finalize themselves and fixtures depending on it 15:53:17 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:17 # See #4871 15:53:17 requested_fixtures_that_should_finalize_us = [] 15:53:17 for argname in self.argnames: 15:53:17 fixturedef = request._get_active_fixturedef(argname) 15:53:17 # Saves requested fixtures in a list so we later can add our finalizer 15:53:17 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:17 # down first. This is generally handled by SetupState, but still currently 15:53:17 # needed when this fixture is not parametrized but depends on a parametrized 15:53:17 # fixture. 15:53:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:17 15:53:17 # Check for (and return) cached value/exception. 15:53:17 if self.cached_result is not None: 15:53:17 request_cache_key = self.cache_key(request) 15:53:17 cache_key = self.cached_result[1] 15:53:17 try: 15:53:17 # Attempt to make a normal == check: this might fail for objects 15:53:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:17 cache_hit = bool(request_cache_key == cache_key) 15:53:17 except (ValueError, RuntimeError): 15:53:17 # If the comparison raises, use 'is' as fallback. 15:53:17 cache_hit = request_cache_key is cache_key 15:53:17 15:53:17 if cache_hit: 15:53:17 if self.cached_result[2] is not None: 15:53:17 exc, exc_tb = self.cached_result[2] 15:53:17 raise exc.with_traceback(exc_tb) 15:53:17 else: 15:53:17 return self.cached_result[0] 15:53:17 # We have a previous but differently parametrized fixture instance 15:53:17 # so we need to tear it down before creating a new one. 15:53:17 self.finish(request) 15:53:17 assert self.cached_result is None 15:53:17 15:53:17 # Add finalizer to requested fixtures we saved previously. 15:53:17 # We make sure to do this after checking for cached value to avoid 15:53:17 # adding our finalizer multiple times. (#12135) 15:53:17 finalizer = functools.partial(self.finish, request=request) 15:53:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:17 parent_fixture.addfinalizer(finalizer) 15:53:17 15:53:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:17 # which is executed last. 15:53:17 > assert not self._finalizers 15:53:17 ^^^^^^^^^^^^^^^^^^^^ 15:53:17 E AssertionError 15:53:17 15:53:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:17 =========================== short test summary info ============================ 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 15:53:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:53:17 10 errors in 101.97s (0:01:41) 15:53:17 Etests200: exit 1 (102.26 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5023 15:53:18 tests200: FAIL ✖ in 1 minute 49.37 seconds 15:53:18 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 15:53:18 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:53:22 ==================================== ERRORS ==================================== 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 15:53:22 15:53:22 cls = 15:53:22 15:53:22 @classmethod 15:53:22 def setUpClass(cls): 15:53:22 > cls.processes = test_utils.start_tpce() 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 15:53:22 transportpce_tests/2.2.1/test01_portmapping.py:33: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 def start_tpce(): 15:53:22 if 'NO_ODL_STARTUP' in os.environ: 15:53:22 print('No OpenDaylight instance to start!') 15:53:22 return [] 15:53:22 print('starting OpenDaylight...') 15:53:22 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:53:22 process = start_lighty() 15:53:22 else: 15:53:22 process = start_karaf() 15:53:22 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:53:22 print('OpenDaylight started !') 15:53:22 else: 15:53:22 print('OpenDaylight failed to start !') 15:53:22 shutdown_process(process) 15:53:22 for pid in process_list: 15:53:22 shutdown_process(pid) 15:53:22 > sys.exit(1) 15:53:22 E SystemExit: 1 15:53:22 15:53:22 transportpce_tests/common/test_utils.py:234: SystemExit 15:53:22 ---------------------------- Captured stdout setup ----------------------------- 15:53:22 starting OpenDaylight... 15:53:22 starting KARAF (karaf221) TransportPCE build... 15:53:22 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:53:22 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece5a700> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9ed40> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ef573240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ee783060> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece5a200> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ef573240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9fba0> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9f240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ef573240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9f7e0> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9fce0> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9f240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9ee80> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ef573240> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9e520> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9db20> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9fba0> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9ed40> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece593a0> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9fd80> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9db20> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59120> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59300> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9db20> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3eceacc20> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59120> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece9db20> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3eceac220> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59120> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ecead800> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ecead440> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59120> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ecead580> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 15:53:22 15:53:22 cls = 15:53:22 func = . at 0x7fb3ece59120> 15:53:22 when = 'setup' 15:53:22 reraise = (, ) 15:53:22 15:53:22 @classmethod 15:53:22 def from_call( 15:53:22 cls, 15:53:22 func: Callable[[], TResult], 15:53:22 when: Literal["collect", "setup", "call", "teardown"], 15:53:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:53:22 ) -> CallInfo[TResult]: 15:53:22 """Call func, wrapping the result in a CallInfo. 15:53:22 15:53:22 :param func: 15:53:22 The function to call. Called without arguments. 15:53:22 :type func: Callable[[], _pytest.runner.TResult] 15:53:22 :param when: 15:53:22 The phase in which the function is called. 15:53:22 :param reraise: 15:53:22 Exception or exceptions that shall propagate if raised by the 15:53:22 function, instead of being wrapped in the CallInfo. 15:53:22 """ 15:53:22 excinfo = None 15:53:22 instant = timing.Instant() 15:53:22 try: 15:53:22 > result: TResult | None = func() 15:53:22 ^^^^^^ 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:53:22 lambda: runtest_hook(item=item, **kwds), 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:53:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:53:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:53:22 yield 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:53:22 return (yield) 15:53:22 ^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:53:22 item.session._setupstate.setup(item) 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:53:22 col.setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:53:22 super().setup() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:53:22 self._request._fillfixtures() 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:53:22 item.funcargs[argname] = self.getfixturevalue(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:53:22 fixturedef = self._get_active_fixturedef(argname) 15:53:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:53:22 fixturedef.execute(request=subrequest) 15:53:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:53:22 15:53:22 self = 15:53:22 request = > 15:53:22 15:53:22 def execute(self, request: SubRequest) -> FixtureValue: 15:53:22 """Return the value of this fixture, executing it if not cached.""" 15:53:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:53:22 # This needs to be done before checking if we have a cached value, since 15:53:22 # if a dependent fixture has their cache invalidated, e.g. due to 15:53:22 # parametrization, they finalize themselves and fixtures depending on it 15:53:22 # (which will likely include this fixture) setting `self.cached_result = None`. 15:53:22 # See #4871 15:53:22 requested_fixtures_that_should_finalize_us = [] 15:53:22 for argname in self.argnames: 15:53:22 fixturedef = request._get_active_fixturedef(argname) 15:53:22 # Saves requested fixtures in a list so we later can add our finalizer 15:53:22 # to them, ensuring that if a requested fixture gets torn down we get torn 15:53:22 # down first. This is generally handled by SetupState, but still currently 15:53:22 # needed when this fixture is not parametrized but depends on a parametrized 15:53:22 # fixture. 15:53:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:53:22 15:53:22 # Check for (and return) cached value/exception. 15:53:22 if self.cached_result is not None: 15:53:22 request_cache_key = self.cache_key(request) 15:53:22 cache_key = self.cached_result[1] 15:53:22 try: 15:53:22 # Attempt to make a normal == check: this might fail for objects 15:53:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:53:22 cache_hit = bool(request_cache_key == cache_key) 15:53:22 except (ValueError, RuntimeError): 15:53:22 # If the comparison raises, use 'is' as fallback. 15:53:22 cache_hit = request_cache_key is cache_key 15:53:22 15:53:22 if cache_hit: 15:53:22 if self.cached_result[2] is not None: 15:53:22 exc, exc_tb = self.cached_result[2] 15:53:22 raise exc.with_traceback(exc_tb) 15:53:22 else: 15:53:22 return self.cached_result[0] 15:53:22 # We have a previous but differently parametrized fixture instance 15:53:22 # so we need to tear it down before creating a new one. 15:53:22 self.finish(request) 15:53:22 assert self.cached_result is None 15:53:22 15:53:22 # Add finalizer to requested fixtures we saved previously. 15:53:22 # We make sure to do this after checking for cached value to avoid 15:53:22 # adding our finalizer multiple times. (#12135) 15:53:22 finalizer = functools.partial(self.finish, request=request) 15:53:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:53:22 parent_fixture.addfinalizer(finalizer) 15:53:22 15:53:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:53:22 # which is executed last. 15:53:22 > assert not self._finalizers 15:53:22 ^^^^^^^^^^^^^^^^^^^^ 15:53:22 E AssertionError 15:53:22 15:53:22 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:53:22 =========================== short test summary info ============================ 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 15:53:22 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 15:53:22 35 errors in 106.47s (0:01:46) 15:53:22 tests221: exit 1 (106.72 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5034 15:53:22 tests221: FAIL ✖ in 1 minute 53.89 seconds 15:53:22 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 15:53:24 tests71: freeze> python -m pip freeze --all 15:53:24 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:53:24 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 15:53:24 using environment variables from ./karaf71.env 15:53:24 pytest -q transportpce_tests/7.1/test01_portmapping.py 15:53:28 tests_hybrid: freeze> python -m pip freeze --all 15:53:28 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.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:53:28 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 15:53:28 using environment variables from ./karaf221.env 15:53:28 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 15:55:04 EEEEEEEEEEEE [100%] 15:55:06 ==================================== ERRORS ==================================== 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 15:55:06 15:55:06 cls = 15:55:06 15:55:06 @classmethod 15:55:06 def setUpClass(cls): 15:55:06 > cls.processes = test_utils.start_tpce() 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 15:55:06 transportpce_tests/7.1/test01_portmapping.py:32: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 def start_tpce(): 15:55:06 if 'NO_ODL_STARTUP' in os.environ: 15:55:06 print('No OpenDaylight instance to start!') 15:55:06 return [] 15:55:06 print('starting OpenDaylight...') 15:55:06 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:06 process = start_lighty() 15:55:06 else: 15:55:06 process = start_karaf() 15:55:06 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:06 print('OpenDaylight started !') 15:55:06 else: 15:55:06 print('OpenDaylight failed to start !') 15:55:06 shutdown_process(process) 15:55:06 for pid in process_list: 15:55:06 shutdown_process(pid) 15:55:06 > sys.exit(1) 15:55:06 E SystemExit: 1 15:55:06 15:55:06 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:06 ---------------------------- Captured stdout setup ----------------------------- 15:55:06 starting OpenDaylight... 15:55:06 starting KARAF (karaf71) TransportPCE build... 15:55:06 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2ca2a0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cba60> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217f9db2e0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cba60> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cb7e0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cb880> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cb6a0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2c8900> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cb6a0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2cb7e0> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 15:55:06 15:55:06 cls = 15:55:06 func = . at 0x7f217d2c8900> 15:55:06 when = 'setup' 15:55:06 reraise = (, ) 15:55:06 15:55:06 @classmethod 15:55:06 def from_call( 15:55:06 cls, 15:55:06 func: Callable[[], TResult], 15:55:06 when: Literal["collect", "setup", "call", "teardown"], 15:55:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:06 ) -> CallInfo[TResult]: 15:55:06 """Call func, wrapping the result in a CallInfo. 15:55:06 15:55:06 :param func: 15:55:06 The function to call. Called without arguments. 15:55:06 :type func: Callable[[], _pytest.runner.TResult] 15:55:06 :param when: 15:55:06 The phase in which the function is called. 15:55:06 :param reraise: 15:55:06 Exception or exceptions that shall propagate if raised by the 15:55:06 function, instead of being wrapped in the CallInfo. 15:55:06 """ 15:55:06 excinfo = None 15:55:06 instant = timing.Instant() 15:55:06 try: 15:55:06 > result: TResult | None = func() 15:55:06 ^^^^^^ 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:06 lambda: runtest_hook(item=item, **kwds), 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:06 yield 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:06 return (yield) 15:55:06 ^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:06 item.session._setupstate.setup(item) 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:06 col.setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:06 super().setup() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:06 self._request._fillfixtures() 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:06 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:06 fixturedef = self._get_active_fixturedef(argname) 15:55:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:06 fixturedef.execute(request=subrequest) 15:55:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:06 15:55:06 self = 15:55:06 request = > 15:55:06 15:55:06 def execute(self, request: SubRequest) -> FixtureValue: 15:55:06 """Return the value of this fixture, executing it if not cached.""" 15:55:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:06 # This needs to be done before checking if we have a cached value, since 15:55:06 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:06 # parametrization, they finalize themselves and fixtures depending on it 15:55:06 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:06 # See #4871 15:55:06 requested_fixtures_that_should_finalize_us = [] 15:55:06 for argname in self.argnames: 15:55:06 fixturedef = request._get_active_fixturedef(argname) 15:55:06 # Saves requested fixtures in a list so we later can add our finalizer 15:55:06 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:06 # down first. This is generally handled by SetupState, but still currently 15:55:06 # needed when this fixture is not parametrized but depends on a parametrized 15:55:06 # fixture. 15:55:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:06 15:55:06 # Check for (and return) cached value/exception. 15:55:06 if self.cached_result is not None: 15:55:06 request_cache_key = self.cache_key(request) 15:55:06 cache_key = self.cached_result[1] 15:55:06 try: 15:55:06 # Attempt to make a normal == check: this might fail for objects 15:55:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:06 cache_hit = bool(request_cache_key == cache_key) 15:55:06 except (ValueError, RuntimeError): 15:55:06 # If the comparison raises, use 'is' as fallback. 15:55:06 cache_hit = request_cache_key is cache_key 15:55:06 15:55:06 if cache_hit: 15:55:06 if self.cached_result[2] is not None: 15:55:06 exc, exc_tb = self.cached_result[2] 15:55:06 raise exc.with_traceback(exc_tb) 15:55:06 else: 15:55:06 return self.cached_result[0] 15:55:06 # We have a previous but differently parametrized fixture instance 15:55:06 # so we need to tear it down before creating a new one. 15:55:06 self.finish(request) 15:55:06 assert self.cached_result is None 15:55:06 15:55:06 # Add finalizer to requested fixtures we saved previously. 15:55:06 # We make sure to do this after checking for cached value to avoid 15:55:06 # adding our finalizer multiple times. (#12135) 15:55:06 finalizer = functools.partial(self.finish, request=request) 15:55:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:06 parent_fixture.addfinalizer(finalizer) 15:55:06 15:55:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:06 # which is executed last. 15:55:06 > assert not self._finalizers 15:55:06 ^^^^^^^^^^^^^^^^^^^^ 15:55:06 E AssertionError 15:55:06 15:55:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:06 =========================== short test summary info ============================ 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 15:55:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 15:55:06 12 errors in 102.26s (0:01:42) 15:55:06 tests71: exit 1 (102.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5161 15:55:09 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:55:18 ==================================== ERRORS ==================================== 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 15:55:18 15:55:18 cls = 15:55:18 15:55:18 @classmethod 15:55:18 def setUpClass(cls): 15:55:18 > cls.processes = test_utils.start_tpce() 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 15:55:18 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 def start_tpce(): 15:55:18 if 'NO_ODL_STARTUP' in os.environ: 15:55:18 print('No OpenDaylight instance to start!') 15:55:18 return [] 15:55:18 print('starting OpenDaylight...') 15:55:18 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:55:18 process = start_lighty() 15:55:18 else: 15:55:18 process = start_karaf() 15:55:18 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:55:18 print('OpenDaylight started !') 15:55:18 else: 15:55:18 print('OpenDaylight failed to start !') 15:55:18 shutdown_process(process) 15:55:18 for pid in process_list: 15:55:18 shutdown_process(pid) 15:55:18 > sys.exit(1) 15:55:18 E SystemExit: 1 15:55:18 15:55:18 transportpce_tests/common/test_utils.py:234: SystemExit 15:55:18 ---------------------------- Captured stdout setup ----------------------------- 15:55:18 starting OpenDaylight... 15:55:18 starting KARAF (karaf221) TransportPCE build... 15:55:18 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103eca0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7041093e20> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7043722f20> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d080> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103cf40> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103eca0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7043722f20> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f70410925c0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7041092840> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103eca0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71940> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7041092b60> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103eca0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71da0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d580> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71da0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d580> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d580> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a720c0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a720c0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71440> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71940> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71a80> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71760> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a70900> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a70e00> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a70900> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a709a0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a71120> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a70fe0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a70fe0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a72a20> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a711c0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a713a0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a709a0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a725c0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f704103d9e0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 15:55:18 15:55:18 cls = 15:55:18 func = . at 0x7f7040a722a0> 15:55:18 when = 'setup' 15:55:18 reraise = (, ) 15:55:18 15:55:18 @classmethod 15:55:18 def from_call( 15:55:18 cls, 15:55:18 func: Callable[[], TResult], 15:55:18 when: Literal["collect", "setup", "call", "teardown"], 15:55:18 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:55:18 ) -> CallInfo[TResult]: 15:55:18 """Call func, wrapping the result in a CallInfo. 15:55:18 15:55:18 :param func: 15:55:18 The function to call. Called without arguments. 15:55:18 :type func: Callable[[], _pytest.runner.TResult] 15:55:18 :param when: 15:55:18 The phase in which the function is called. 15:55:18 :param reraise: 15:55:18 Exception or exceptions that shall propagate if raised by the 15:55:18 function, instead of being wrapped in the CallInfo. 15:55:18 """ 15:55:18 excinfo = None 15:55:18 instant = timing.Instant() 15:55:18 try: 15:55:18 > result: TResult | None = func() 15:55:18 ^^^^^^ 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:55:18 lambda: runtest_hook(item=item, **kwds), 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:55:18 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:55:18 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:55:18 yield 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:55:18 return (yield) 15:55:18 ^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:55:18 item.session._setupstate.setup(item) 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:55:18 col.setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:55:18 super().setup() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:55:18 self._request._fillfixtures() 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:55:18 item.funcargs[argname] = self.getfixturevalue(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:55:18 fixturedef = self._get_active_fixturedef(argname) 15:55:18 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:55:18 fixturedef.execute(request=subrequest) 15:55:18 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:55:18 15:55:18 self = 15:55:18 request = > 15:55:18 15:55:18 def execute(self, request: SubRequest) -> FixtureValue: 15:55:18 """Return the value of this fixture, executing it if not cached.""" 15:55:18 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:55:18 # This needs to be done before checking if we have a cached value, since 15:55:18 # if a dependent fixture has their cache invalidated, e.g. due to 15:55:18 # parametrization, they finalize themselves and fixtures depending on it 15:55:18 # (which will likely include this fixture) setting `self.cached_result = None`. 15:55:18 # See #4871 15:55:18 requested_fixtures_that_should_finalize_us = [] 15:55:18 for argname in self.argnames: 15:55:18 fixturedef = request._get_active_fixturedef(argname) 15:55:18 # Saves requested fixtures in a list so we later can add our finalizer 15:55:18 # to them, ensuring that if a requested fixture gets torn down we get torn 15:55:18 # down first. This is generally handled by SetupState, but still currently 15:55:18 # needed when this fixture is not parametrized but depends on a parametrized 15:55:18 # fixture. 15:55:18 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:55:18 15:55:18 # Check for (and return) cached value/exception. 15:55:18 if self.cached_result is not None: 15:55:18 request_cache_key = self.cache_key(request) 15:55:18 cache_key = self.cached_result[1] 15:55:18 try: 15:55:18 # Attempt to make a normal == check: this might fail for objects 15:55:18 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:55:18 cache_hit = bool(request_cache_key == cache_key) 15:55:18 except (ValueError, RuntimeError): 15:55:18 # If the comparison raises, use 'is' as fallback. 15:55:18 cache_hit = request_cache_key is cache_key 15:55:18 15:55:18 if cache_hit: 15:55:18 if self.cached_result[2] is not None: 15:55:18 exc, exc_tb = self.cached_result[2] 15:55:18 raise exc.with_traceback(exc_tb) 15:55:18 else: 15:55:18 return self.cached_result[0] 15:55:18 # We have a previous but differently parametrized fixture instance 15:55:18 # so we need to tear it down before creating a new one. 15:55:18 self.finish(request) 15:55:18 assert self.cached_result is None 15:55:18 15:55:18 # Add finalizer to requested fixtures we saved previously. 15:55:18 # We make sure to do this after checking for cached value to avoid 15:55:18 # adding our finalizer multiple times. (#12135) 15:55:18 finalizer = functools.partial(self.finish, request=request) 15:55:18 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:55:18 parent_fixture.addfinalizer(finalizer) 15:55:18 15:55:18 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:55:18 # which is executed last. 15:55:18 > assert not self._finalizers 15:55:18 ^^^^^^^^^^^^^^^^^^^^ 15:55:18 E AssertionError 15:55:18 15:55:18 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:55:18 =========================== short test summary info ============================ 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 15:55:18 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 15:55:18 51 errors in 109.57s (0:01:49) 15:55:18 tests71: FAIL ✖ in 1 minute 48.95 seconds 15:55:18 tests_hybrid: exit 1 (109.86 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5177 15:55:18 buildcontroller: FAIL code 1 (8.53=setup[7.97]+cmd[0.57] seconds) 15:55:18 sims: OK (150.11=setup[7.35]+cmd[142.76] seconds) 15:55:18 testsPCE: FAIL code 1 (172.52=setup[48.41]+cmd[124.12] seconds) 15:55:18 build_karaf_tests221: FAIL code 127 (6.53=setup[6.51]+cmd[0.02] seconds) 15:55:18 tests_tapi: FAIL code 1 (117.25=setup[7.74]+cmd[109.50] seconds) 15:55:18 tests221: FAIL code 1 (113.89=setup[7.17]+cmd[106.72] seconds) 15:55:18 build_karaf_tests71: FAIL code 127 (6.57=setup[6.55]+cmd[0.01] seconds) 15:55:18 tests71: FAIL code 1 (108.95=setup[6.39]+cmd[102.55] seconds) 15:55:18 build_karaf_tests200: FAIL code 127 (6.60=setup[6.59]+cmd[0.00] seconds) 15:55:18 tests200: FAIL code 1 (109.37=setup[7.11]+cmd[102.26] seconds) 15:55:18 tests_hybrid: FAIL code 1 (116.26=setup[6.39]+cmd[109.86] seconds) 15:55:18 buildlighty: FAIL code 9 (6.93=setup[6.92]+cmd[0.01] seconds) 15:55:18 docs: OK (16.50=setup[13.84]+cmd[2.66] seconds) 15:55:18 docs-linkcheck: OK (18.12=setup[14.81]+cmd[3.31] seconds) 15:55:18 checkbashisms: OK (3.12=setup[1.90]+cmd[0.00,0.04,1.18] seconds) 15:55:18 pre-commit: OK (56.98=setup[2.80]+cmd[0.02,0.00,44.70,9.46] seconds) 15:55:18 pylint: FAIL code 1 (21.33=setup[3.43]+cmd[17.90] seconds) 15:55:18 evaluation failed :( (549.83 seconds) 15:55:18 + tox_status=1 15:55:18 + echo '---> Completed tox runs' 15:55:18 ---> Completed tox runs 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/build_karaf_tests200/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=build_karaf_tests200 15:55:18 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/build_karaf_tests221/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=build_karaf_tests221 15:55:18 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/build_karaf_tests71/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=build_karaf_tests71 15:55:18 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/buildcontroller/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=buildcontroller 15:55:18 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/buildlighty/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=buildlighty 15:55:18 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/checkbashisms/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=checkbashisms 15:55:18 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/docs-linkcheck/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=docs-linkcheck 15:55:18 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/docs/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=docs 15:55:18 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 15:55:18 + for i in .tox/*/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 ++ echo .tox/pre-commit/log 15:55:18 + tox_env=pre-commit 15:55:18 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/pylint/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=pylint 15:55:18 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/sims/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=sims 15:55:18 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/tests200/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=tests200 15:55:18 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/tests221/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=tests221 15:55:18 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/tests71/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=tests71 15:55:18 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/testsPCE/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=testsPCE 15:55:18 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/tests_hybrid/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=tests_hybrid 15:55:18 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 15:55:18 + for i in .tox/*/log 15:55:18 ++ echo .tox/tests_tapi/log 15:55:18 ++ awk -F/ '{print $2}' 15:55:18 + tox_env=tests_tapi 15:55:18 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 15:55:18 + DOC_DIR=docs/_build/html 15:55:18 + [[ -d docs/_build/html ]] 15:55:18 + echo '---> Archiving generated docs' 15:55:18 ---> Archiving generated docs 15:55:18 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:55:18 + echo '---> tox-run.sh ends' 15:55:18 ---> tox-run.sh ends 15:55:18 + test 1 -eq 0 15:55:18 + exit 1 15:55:18 ++ '[' 1 = 1 ']' 15:55:18 ++ '[' -x /usr/bin/clear_console ']' 15:55:18 ++ /usr/bin/clear_console -q 15:55:18 Build step 'Execute shell' marked build as failure 15:55:18 $ ssh-agent -k 15:55:18 unset SSH_AUTH_SOCK; 15:55:18 unset SSH_AGENT_PID; 15:55:18 echo Agent pid 1562 killed; 15:55:18 [ssh-agent] Stopped. 15:55:19 [PostBuildScript] - [INFO] Executing post build scripts. 15:55:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11577398419628017893.sh 15:55:19 ---> sysstat.sh 15:55:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5209542137338168211.sh 15:55:19 ---> package-listing.sh 15:55:19 + '[' -f /etc/os-release ']' 15:55:19 + . /etc/os-release 15:55:19 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 15:55:19 ++ NAME=Ubuntu 15:55:19 ++ VERSION_ID=22.04 15:55:19 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 15:55:19 ++ VERSION_CODENAME=jammy 15:55:19 ++ ID=ubuntu 15:55:19 ++ ID_LIKE=debian 15:55:19 ++ HOME_URL=https://www.ubuntu.com/ 15:55:19 ++ SUPPORT_URL=https://help.ubuntu.com/ 15:55:19 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 15:55:19 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 15:55:19 ++ UBUNTU_CODENAME=jammy 15:55:19 + case " ${ID:-} ${ID_LIKE:-} " in 15:55:19 + OS_FAMILY=debian 15:55:19 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 15:55:19 + START_PACKAGES=/tmp/packages_start.txt 15:55:19 + END_PACKAGES=/tmp/packages_end.txt 15:55:19 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:55:19 + PACKAGES=/tmp/packages_start.txt 15:55:19 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:19 + PACKAGES=/tmp/packages_end.txt 15:55:19 + case "${OS_FAMILY}" in 15:55:19 + dpkg -l 15:55:19 + grep '^ii' 15:55:19 + '[' -f /tmp/packages_start.txt ']' 15:55:19 + '[' -f /tmp/packages_end.txt ']' 15:55:19 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:55:19 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:55:19 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:19 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:55:19 + exit 0 15:55:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17484519101732980979.sh 15:55:19 ---> capture-instance-metadata.sh 15:55:19 Setup pyenv: 15:55:19 system 15:55:19 3.8.20 15:55:19 3.9.20 15:55:19 3.10.15 15:55:19 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:19 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ffNa from file:/tmp/.os_lf_venv 15:55:19 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:21 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:35 lf-activate-venv(): INFO: Adding /tmp/venv-ffNa/bin to PATH 15:55:35 INFO: Running in OpenStack, capturing instance metadata 15:55:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7182281662361375278.sh 15:55:36 provisioning config files... 15:55:36 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6136 15:55:36 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config3329505760816450866tmp 15:55:36 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 15:55:36 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 15:55:36 provisioning config files... 15:55:37 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 15:55:37 [EnvInject] - Injecting environment variables from a build step. 15:55:37 [EnvInject] - Injecting as environment variables the properties content 15:55:37 SERVER_ID=logs 15:55:37 15:55:37 [EnvInject] - Variables injected successfully. 15:55:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3308147742542649308.sh 15:55:37 ---> create-netrc.sh 15:55:37 WARN: Log server credential not found. 15:55:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3249426021750401851.sh 15:55:37 ---> python-tools-install.sh 15:55:37 Setup pyenv: 15:55:37 system 15:55:37 3.8.20 15:55:37 3.9.20 15:55:37 3.10.15 15:55:37 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ffNa from file:/tmp/.os_lf_venv 15:55:37 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:39 lf-activate-venv(): INFO: Installing additional packages: lftools 15:55:48 lf-activate-venv(): INFO: Adding /tmp/venv-ffNa/bin to PATH 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins11038832592148813402.sh 15:55:48 ---> uv-install.sh 15:55:48 uv 0.12.23 is already installed 15:55:48 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17822089089260645867.sh 15:55:48 ---> sudo-logs.sh 15:55:48 Archiving 'sudo' log.. 15:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13397329021658426892.sh 15:55:48 ---> job-cost.sh 15:55:48 INFO: Activating Python virtual environment... 15:55:48 Setup pyenv: 15:55:48 system 15:55:48 3.8.20 15:55:48 3.9.20 15:55:48 3.10.15 15:55:48 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ffNa from file:/tmp/.os_lf_venv 15:55:48 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:50 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 15:55:57 lf-activate-venv(): INFO: Adding /tmp/venv-ffNa/bin to PATH 15:55:57 INFO: No stack-cost file found 15:55:57 INFO: Instance uptime: 725s 15:55:57 INFO: Fetching instance metadata (attempt 1 of 3)... 15:55:57 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 15:55:58 INFO: Successfully fetched instance metadata 15:55:58 INFO: Instance type: v3-standard-4 15:55:58 INFO: Retrieving pricing info for: v3-standard-4 15:55:58 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 15:55:58 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=725 15:55:58 INFO: Successfully fetched Vexxhost pricing API 15:55:58 INFO: Retrieved cost: 0.11 15:55:58 INFO: Retrieved resource: v3-standard-4 15:55:58 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 15:55:58 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 15:55:58 INFO: Successfully archived job cost data 15:55:58 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6136,2026-10-06 15:55:58,v3-standard-4,725,0.11,0.00,FAILURE 15:55:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins7722387203670471201.sh 15:55:58 ---> logs-deploy.sh 15:55:58 Setup pyenv: 15:55:58 system 15:55:58 3.8.20 15:55:58 3.9.20 15:55:58 3.10.15 15:55:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:59 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ffNa from file:/tmp/.os_lf_venv 15:55:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:56:00 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 15:56:09 lf-activate-venv(): INFO: Adding /tmp/venv-ffNa/bin to PATH 15:56:09 WARNING: Nexus logging server not set 15:56:09 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6136/ 15:56:09 INFO: archiving logs to S3 15:56:11 ---> uname -a: 15:56:11 Linux prd-ubuntu2204-docker-4c-16g-62475 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 15:56:11 15:56:11 15:56:11 ---> lscpu: 15:56:11 Architecture: x86_64 15:56:11 CPU op-mode(s): 32-bit, 64-bit 15:56:11 Address sizes: 40 bits physical, 48 bits virtual 15:56:11 Byte Order: Little Endian 15:56:11 CPU(s): 4 15:56:11 On-line CPU(s) list: 0-3 15:56:11 Vendor ID: AuthenticAMD 15:56:11 Model name: AMD EPYC-Rome Processor 15:56:11 CPU family: 23 15:56:11 Model: 49 15:56:11 Thread(s) per core: 1 15:56:11 Core(s) per socket: 1 15:56:11 Socket(s): 4 15:56:11 Stepping: 0 15:56:11 BogoMIPS: 5600.00 15:56:11 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 15:56:11 Virtualization: AMD-V 15:56:11 Hypervisor vendor: KVM 15:56:11 Virtualization type: full 15:56:11 L1d cache: 128 KiB (4 instances) 15:56:11 L1i cache: 128 KiB (4 instances) 15:56:11 L2 cache: 2 MiB (4 instances) 15:56:11 L3 cache: 64 MiB (4 instances) 15:56:11 NUMA node(s): 1 15:56:11 NUMA node0 CPU(s): 0-3 15:56:11 Vulnerability Gather data sampling: Not affected 15:56:11 Vulnerability Indirect target selection: Not affected 15:56:11 Vulnerability Itlb multihit: Not affected 15:56:11 Vulnerability L1tf: Not affected 15:56:11 Vulnerability Mds: Not affected 15:56:11 Vulnerability Meltdown: Not affected 15:56:11 Vulnerability Mmio stale data: Not affected 15:56:11 Vulnerability Reg file data sampling: Not affected 15:56:11 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 15:56:11 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 15:56:11 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 15:56:11 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 15:56:11 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 15:56:11 Vulnerability Srbds: Not affected 15:56:11 Vulnerability Tsa: Not affected 15:56:11 Vulnerability Tsx async abort: Not affected 15:56:11 Vulnerability Vmscape: Not affected 15:56:11 15:56:11 15:56:11 ---> nproc: 15:56:11 4 15:56:11 15:56:11 15:56:11 ---> df -h: 15:56:11 Filesystem Size Used Avail Use% Mounted on 15:56:11 tmpfs 1.6G 1.1M 1.6G 1% /run 15:56:11 /dev/vda1 78G 12G 67G 15% / 15:56:11 tmpfs 7.9G 0 7.9G 0% /dev/shm 15:56:11 tmpfs 5.0M 0 5.0M 0% /run/lock 15:56:11 /dev/vda15 105M 6.1M 99M 6% /boot/efi 15:56:11 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 15:56:11 15:56:11 15:56:11 ---> free -m: 15:56:11 total used free shared buff/cache available 15:56:11 Mem: 15989 749 9479 4 5760 14896 15:56:11 Swap: 1023 0 1023 15:56:11 15:56:11 15:56:11 ---> ip addr: 15:56:11 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 15:56:11 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15:56:11 inet 127.0.0.1/8 scope host lo 15:56:11 valid_lft forever preferred_lft forever 15:56:11 inet6 ::1/128 scope host 15:56:11 valid_lft forever preferred_lft forever 15:56:11 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 15:56:11 link/ether fa:16:3e:ff:85:88 brd ff:ff:ff:ff:ff:ff 15:56:11 altname enp0s3 15:56:11 inet 10.30.171.0/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 15:56:11 valid_lft 85671sec preferred_lft 85671sec 15:56:11 inet6 fe80::f816:3eff:feff:8588/64 scope link 15:56:11 valid_lft forever preferred_lft forever 15:56:11 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 15:56:11 link/ether 9a:d5:19:76:b1:60 brd ff:ff:ff:ff:ff:ff 15:56:11 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 15:56:11 valid_lft forever preferred_lft forever 15:56:11 inet6 fe80::98d5:19ff:fe76:b160/64 scope link 15:56:11 valid_lft forever preferred_lft forever 15:56:11 15:56:11 15:56:11 ---> sar -b -r -n DEV: 15:56:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62475) 10/06/26 _x86_64_ (4 CPU) 15:56:11 15:56:11 15:44:03 LINUX RESTART (4 CPU) 15:56:11 15:56:11 15:56:11 ---> sar -P ALL: 15:56:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62475) 10/06/26 _x86_64_ (4 CPU) 15:56:11 15:56:11 15:44:03 LINUX RESTART (4 CPU) 15:56:11 15:56:11 15:56:11