12:44:25 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126287 12:44:25 Running as SYSTEM 12:44:25 [EnvInject] - Loading node environment variables. 12:44:25 Building remotely on prd-ubuntu2204-docker-4c-16g-62917 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 12:44:25 [ssh-agent] Looking for ssh-agent implementation... 12:44:25 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 12:44:25 $ ssh-agent 12:44:25 SSH_AUTH_SOCK=/tmp/ssh-XXXXXX9ceahr/agent.1568 12:44:25 SSH_AGENT_PID=1570 12:44:25 [ssh-agent] Started. 12:44:25 Running ssh-add (command line suppressed) 12:44:25 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_5070773967580085379.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_5070773967580085379.key) 12:44:25 [ssh-agent] Using credentials jenkins (jenkins-ssh) 12:44:25 The recommended git tool is: NONE 12:44:28 using credential jenkins-ssh 12:44:28 Wiping out workspace first. 12:44:28 Cloning the remote Git repository 12:44:28 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 12:44:28 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 12:44:28 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:44:28 > git --version # timeout=10 12:44:28 > git --version # 'git version 2.34.1' 12:44:28 using GIT_SSH to set credentials jenkins-ssh 12:44:28 Verifying host key using known hosts file, will automatically accept unseen keys 12:44:28 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 12:44:32 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:44:32 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 12:44:32 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 12:44:32 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 12:44:32 using GIT_SSH to set credentials jenkins-ssh 12:44:32 Verifying host key using known hosts file, will automatically accept unseen keys 12:44:32 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/87/126287/4 # timeout=10 12:44:32 > git rev-parse 4189309f84d7c3641a497d685c9b636152f62184^{commit} # timeout=10 12:44:32 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 12:44:32 Checking out Revision 4189309f84d7c3641a497d685c9b636152f62184 (refs/changes/87/126287/4) 12:44:32 > git config core.sparsecheckout # timeout=10 12:44:32 > git checkout -f 4189309f84d7c3641a497d685c9b636152f62184 # timeout=10 12:44:36 Commit message: "ci: add scheduled stable merge, fix legacy refs" 12:44:36 > git rev-parse FETCH_HEAD^{commit} # timeout=10 12:44:36 > git rev-list --no-walk 778c4831b98f585a845bf3baa723efd596bd713c # timeout=10 12:44:36 > git remote # timeout=10 12:44:36 > git submodule init # timeout=10 12:44:36 > git submodule sync # timeout=10 12:44:36 > git config --get remote.origin.url # timeout=10 12:44:36 > git submodule init # timeout=10 12:44:36 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 12:44:36 ERROR: No submodules found. 12:44:36 provisioning config files... 12:44:36 copy managed file [npmrc] to file:/home/jenkins/.npmrc 12:44:36 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 12:44:36 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10419558376895603916.sh 12:44:36 ---> python-tools-install.sh 12:44:36 Setup pyenv: 12:44:37 * system (set by /opt/pyenv/version) 12:44:37 * 3.8.20 (set by /opt/pyenv/version) 12:44:37 * 3.9.20 (set by /opt/pyenv/version) 12:44:37 3.10.15 12:44:37 3.11.10 12:44:41 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-R1Zs 12:44:41 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 12:44:41 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:44:46 lf-activate-venv(): INFO: Installing additional packages: lftools 12:45:11 lf-activate-venv(): INFO: Adding /tmp/venv-R1Zs/bin to PATH 12:45:11 Generating Requirements File 12:45:37 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. 12:45:37 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 12:45:37 Python 3.11.10 12:45:37 pip 26.2.1 from /tmp/venv-R1Zs/lib/python3.11/site-packages/pip (python 3.11) 12:45:37 aiohappyeyeballs==2.7.1 12:45:37 aiohttp==3.14.4 12:45:37 aiosignal==1.4.0 12:45:37 appdirs==1.4.4 12:45:37 argcomplete==3.7.2 12:45:37 aspy.yaml==1.3.0 12:45:37 attrs==26.1.0 12:45:37 autopage==0.6.0 12:45:37 beautifulsoup4==4.15.0 12:45:37 boto3==1.43.109 12:45:37 botocore==1.43.109 12:45:37 bs4==0.0.2 12:45:37 certifi==2026.7.22 12:45:37 cffi==2.1.1 12:45:37 cfgv==3.5.0 12:45:37 chardet==7.6.0 12:45:37 charset-normalizer==3.5.2 12:45:37 click==8.5.0 12:45:37 cliff==4.16.0 12:45:37 cmd2==4.2.4 12:45:37 cryptography==3.3.2 12:45:37 debtcollector==3.1.0 12:45:37 decorator==5.3.1 12:45:37 defusedxml==0.7.1 12:45:37 Deprecated==1.3.1 12:45:37 distlib==0.4.3 12:45:37 dnspython==2.8.0 12:45:37 docker==7.2.0 12:45:37 dogpile.cache==1.5.0 12:45:37 durationpy==0.11 12:45:37 email-validator==2.3.0 12:45:37 filelock==4.0.12 12:45:37 frozenlist==1.8.0 12:45:37 future==1.0.0 12:45:37 gitdb==4.0.12 12:45:37 GitPython==3.2.0 12:45:37 httplib2==0.30.2 12:45:37 identify==2.6.20 12:45:37 idna==3.20 12:45:37 importlib-resources==1.5.0 12:45:37 iso8601==2.1.0 12:45:37 Jinja2==3.1.6 12:45:37 jmespath==1.1.0 12:45:37 jsonpatch==1.33 12:45:37 jsonpointer==3.2.0 12:45:37 jsonschema==4.26.0 12:45:37 jsonschema-specifications==2025.9.1 12:45:37 keystoneauth1==5.18.0 12:45:37 kubernetes==36.0.3 12:45:37 lftools==0.37.23 12:45:37 lxml==6.1.3 12:45:37 markdown-it-py==4.2.0 12:45:37 MarkupSafe==3.0.4 12:45:37 mdurl==0.1.2 12:45:37 msgpack==1.2.3 12:45:37 multi_key_dict==2.0.3 12:45:37 multidict==6.9.1 12:45:37 munch==4.0.0 12:45:37 netaddr==1.3.0 12:45:37 niet==1.4.2 12:45:37 nodeenv==1.11.0 12:45:37 oauth2client==4.1.3 12:45:37 oauthlib==4.0.0 12:45:37 openstacksdk==4.21.0 12:45:37 os-service-types==1.9.0 12:45:37 osc-lib==4.7.0 12:45:37 oslo.config==10.7.0 12:45:37 oslo.context==6.5.0 12:45:37 oslo.i18n==6.9.0 12:45:37 oslo.log==8.3.2 12:45:37 oslo.serialization==5.11.0 12:45:37 oslo.utils==10.2.0 12:45:37 packaging==26.3 12:45:37 pbr==7.1.3 12:45:37 platformdirs==4.12.4 12:45:37 prettytable==3.18.0 12:45:37 prompt_toolkit==3.0.53 12:45:37 propcache==0.5.4 12:45:37 psutil==7.2.2 12:45:37 pyasn1==0.6.4 12:45:37 pyasn1_modules==0.4.2 12:45:37 pycparser==3.1 12:45:37 pygerrit2==2.0.15 12:45:37 PyGithub==2.10.0 12:45:37 Pygments==2.21.0 12:45:37 PyJWT==2.15.1 12:45:37 PyNaCl==1.6.2 12:45:37 pyparsing==2.4.7 12:45:37 pyperclip==1.11.0 12:45:37 pyrsistent==0.20.0 12:45:37 python-dateutil==2.9.0.post0 12:45:37 python-discovery==1.6.1 12:45:37 python-heatclient==5.3.0 12:45:37 python-jenkins==1.8.3 12:45:37 python-keystoneclient==6.0.0 12:45:37 python-magnumclient==5.0.0 12:45:37 python-manilaclient==6.3.0 12:45:37 python-openstackclient==10.3.0 12:45:37 python-swiftclient==4.11.0 12:45:37 PyYAML==6.0.3 12:45:37 referencing==0.37.0 12:45:37 requests==2.34.2 12:45:37 requests-oauthlib==2.0.0 12:45:37 rfc3986==2.0.0 12:45:37 rich==15.0.0 12:45:37 rich-argparse==1.8.0 12:45:37 rpds-py==2026.9.1 12:45:37 rsa==4.9.1 12:45:37 ruamel.yaml==0.19.1 12:45:37 ruamel.yaml.clib==0.2.15 12:45:37 s3transfer==0.19.2 12:45:37 simplejson==4.2.0 12:45:37 six==1.17.0 12:45:37 smmap==5.0.3 12:45:37 soupsieve==2.10 12:45:37 stevedore==5.9.1 12:45:37 tabulate==0.10.0 12:45:37 toml==0.10.2 12:45:37 tomlkit==0.15.1 12:45:37 tqdm==4.70.1 12:45:37 typing_extensions==4.16.0 12:45:37 urllib3==1.26.20 12:45:37 virtualenv==21.14.5 12:45:37 wcwidth==0.9.2 12:45:37 websocket-client==1.9.2 12:45:37 wrapt==2.5.0 12:45:37 xdg==6.0.0 12:45:37 xmltodict==1.0.4 12:45:37 yarl==1.25.1 12:45:37 yq==4.4.0 12:45:38 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins15636578151738627209.sh 12:45:38 ---> uv-install.sh 12:45:38 Installing uv/uvx (latest) using shell installer 12:45:38 2026-10-08 12:45:38 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-WcIgwh.sh" [1] 12:45:38 downloading uv 0.12.23 x86_64-unknown-linux-gnu 12:45:39 installing to /home/jenkins/.local/bin 12:45:39 uv 12:45:39 uvx 12:45:39 everything's installed! 12:45:39 12:45:39 To add $HOME/.local/bin to your PATH, either restart your shell or run: 12:45:39 12:45:39 source $HOME/.local/bin/env (sh, bash, zsh) 12:45:39 source $HOME/.local/bin/env.fish (fish) 12:45:39 Adding install location to PATH 12:45:39 ---> Validating uv/uvx install 12:45:39 uvx 0.12.23 (x86_64-unknown-linux-gnu) 12:45:39 [EnvInject] - Injecting environment variables from a build step. 12:45:39 [EnvInject] - Injecting as environment variables the properties content 12:45:39 PYTHON=python3 12:45:39 12:45:39 [EnvInject] - Variables injected successfully. 12:45:39 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins18049975437114594653.sh 12:45:39 ---> tox-install.sh 12:45:39 + source /home/jenkins/lf-env.sh 12:45:39 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:45:39 ++ mktemp -d /tmp/venv-XXXX 12:45:39 + lf_venv=/tmp/venv-KXmy 12:45:39 + local venv_file=/tmp/.os_lf_venv 12:45:39 + local python=python3 12:45:39 + local options 12:45:39 + local set_path=true 12:45:39 + local install_args= 12:45:39 ++ 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 12:45:39 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:45:39 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:45:39 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:45:39 + true 12:45:39 + case $1 in 12:45:39 + venv_file=/tmp/.toxenv 12:45:39 + shift 2 12:45:39 + true 12:45:39 + case $1 in 12:45:39 + shift 12:45:39 + break 12:45:39 + case $python in 12:45:39 + local pkg_list= 12:45:39 + [[ -d /opt/pyenv ]] 12:45:39 + echo 'Setup pyenv:' 12:45:39 Setup pyenv: 12:45:39 + export PYENV_ROOT=/opt/pyenv 12:45:39 + PYENV_ROOT=/opt/pyenv 12:45:39 + 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 12:45:39 + 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 12:45:39 + pyenv versions 12:45:39 system 12:45:39 3.8.20 12:45:39 3.9.20 12:45:39 3.10.15 12:45:39 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:45:39 + command -v pyenv 12:45:39 ++ pyenv init - --no-rehash 12:45:39 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:45:39 for i in ${!paths[@]}; do 12:45:39 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:45:39 fi; done; 12:45:39 echo "${paths[*]}"'\'')" 12:45:39 export PATH="/opt/pyenv/shims:${PATH}" 12:45:39 export PYENV_SHELL=bash 12:45:39 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:45:39 pyenv() { 12:45:39 local command 12:45:39 command="${1:-}" 12:45:39 if [ "$#" -gt 0 ]; then 12:45:39 shift 12:45:39 fi 12:45:39 12:45:39 case "$command" in 12:45:39 rehash|shell) 12:45:39 eval "$(pyenv "sh-$command" "$@")" 12:45:39 ;; 12:45:39 *) 12:45:39 command pyenv "$command" "$@" 12:45:39 ;; 12:45:39 esac 12:45:39 }' 12:45:39 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:45:39 for i in ${!paths[@]}; do 12:45:39 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:45:39 fi; done; 12:45:39 echo "${paths[*]}"' 12:45:39 ++ 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 12:45:39 ++ 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 12:45:39 ++ 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 12:45:39 ++ export PYENV_SHELL=bash 12:45:39 ++ PYENV_SHELL=bash 12:45:39 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:45:39 +++ complete -F _pyenv pyenv 12:45:39 ++ lf-pyver python3 12:45:39 ++ local py_version_xy=python3 12:45:39 ++ local py_version_xyz= 12:45:39 ++ sed 's/^[ *]* //' 12:45:39 ++ awk '{ print $1 }' 12:45:39 ++ grep -E '^[0-9.]*[0-9]$' 12:45:39 ++ pyenv versions 12:45:39 ++ local command 12:45:39 ++ command=versions 12:45:39 ++ '[' 1 -gt 0 ']' 12:45:39 ++ shift 12:45:39 ++ case "$command" in 12:45:39 ++ command pyenv versions 12:45:39 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:45:39 +++ grep '^3' /tmp/.pyenv_versions 12:45:39 +++ sort -V 12:45:39 +++ tail -n 1 12:45:39 ++ py_version_xyz=3.11.10 12:45:39 ++ [[ -z 3.11.10 ]] 12:45:39 ++ echo 3.11.10 12:45:39 ++ return 0 12:45:39 + pyenv local 3.11.10 12:45:39 + local command 12:45:39 + command=local 12:45:39 + '[' 2 -gt 0 ']' 12:45:39 + shift 12:45:39 + case "$command" in 12:45:39 + command pyenv local 3.11.10 12:45:39 + for arg in "$@" 12:45:39 + case $arg in 12:45:39 + pkg_list+='tox ' 12:45:39 + for arg in "$@" 12:45:39 + case $arg in 12:45:39 + pkg_list+='virtualenv ' 12:45:39 + for arg in "$@" 12:45:39 + case $arg in 12:45:39 + pkg_list+='urllib3~=1.26.15 ' 12:45:39 + [[ -f /tmp/.toxenv ]] 12:45:39 + [[ ! -f /tmp/.toxenv ]] 12:45:39 + [[ -n '' ]] 12:45:39 + python3 -m venv /tmp/venv-KXmy 12:45:43 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-KXmy' 12:45:43 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-KXmy 12:45:43 + echo /tmp/venv-KXmy 12:45:43 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 12:45:43 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 12:45:43 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:45:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:45:43 + local 'pip_opts=--upgrade --quiet' 12:45:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:45:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:45:43 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:45:43 + [[ -n '' ]] 12:45:43 + [[ -n '' ]] 12:45:43 + lf-venv-pip-install /tmp/venv-KXmy/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 12:45:43 + local venv_python=/tmp/venv-KXmy/bin/python3 12:45:43 + shift 12:45:43 + local upstream=https://pypi.org/simple 12:45:43 + /tmp/venv-KXmy/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 12:45:47 + return 0 12:45:47 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:45:47 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:45:47 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:45:47 + lf-venv-pip-install /tmp/venv-KXmy/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 12:45:47 + local venv_python=/tmp/venv-KXmy/bin/python3 12:45:47 + shift 12:45:47 + local upstream=https://pypi.org/simple 12:45:47 + /tmp/venv-KXmy/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 12:45:50 + return 0 12:45:50 + type python3 12:45:50 + true 12:45:50 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-KXmy/bin to PATH' 12:45:50 lf-activate-venv(): INFO: Adding /tmp/venv-KXmy/bin to PATH 12:45:50 + PATH=/tmp/venv-KXmy/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 12:45:50 + return 0 12:45:50 + python3 --version 12:45:50 Python 3.11.10 12:45:50 + python3 -m pip --version 12:45:50 pip 26.2.1 from /tmp/venv-KXmy/lib/python3.11/site-packages/pip (python 3.11) 12:45:50 + python3 -m pip freeze 12:45:50 cachetools==7.2.1 12:45:50 colorama==0.4.6 12:45:50 distlib==0.4.3 12:45:50 filelock==4.0.12 12:45:50 packaging==26.3 12:45:50 platformdirs==4.12.4 12:45:50 pluggy==1.6.0 12:45:50 pyproject-api==1.11.4 12:45:50 python-discovery==1.6.1 12:45:50 tomli_w==1.2.0 12:45:50 tox==4.64.9 12:45:50 typing_extensions==4.16.0 12:45:50 urllib3==1.26.20 12:45:50 virtualenv==21.14.5 12:45:50 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins9861802608293598991.sh 12:45:50 [EnvInject] - Injecting environment variables from a build step. 12:45:50 [EnvInject] - Injecting as environment variables the properties content 12:45:50 PARALLEL=True 12:45:50 12:45:50 [EnvInject] - Variables injected successfully. 12:45:50 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins15377381510213557067.sh 12:45:50 ---> tox-run.sh 12:45:50 + 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 12:45:50 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:45:50 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 12:45:50 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 12:45:50 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 12:45:50 + source /home/jenkins/lf-env.sh 12:45:50 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 12:45:50 ++ mktemp -d /tmp/venv-XXXX 12:45:50 + lf_venv=/tmp/venv-AyFf 12:45:50 + local venv_file=/tmp/.os_lf_venv 12:45:50 + local python=python3 12:45:50 + local options 12:45:50 + local set_path=true 12:45:50 + local install_args= 12:45:50 ++ 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 12:45:50 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:45:50 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 12:45:50 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 12:45:50 + true 12:45:50 + case $1 in 12:45:50 + venv_file=/tmp/.toxenv 12:45:50 + shift 2 12:45:50 + true 12:45:50 + case $1 in 12:45:50 + shift 12:45:50 + break 12:45:50 + case $python in 12:45:50 + local pkg_list= 12:45:50 + [[ -d /opt/pyenv ]] 12:45:50 + echo 'Setup pyenv:' 12:45:50 Setup pyenv: 12:45:50 + export PYENV_ROOT=/opt/pyenv 12:45:50 + PYENV_ROOT=/opt/pyenv 12:45:50 + 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 12:45:50 + 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 12:45:50 + pyenv versions 12:45:50 system 12:45:50 3.8.20 12:45:50 3.9.20 12:45:50 3.10.15 12:45:50 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:45:50 + command -v pyenv 12:45:50 ++ pyenv init - --no-rehash 12:45:50 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 12:45:50 for i in ${!paths[@]}; do 12:45:50 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 12:45:50 fi; done; 12:45:50 echo "${paths[*]}"'\'')" 12:45:50 export PATH="/opt/pyenv/shims:${PATH}" 12:45:50 export PYENV_SHELL=bash 12:45:50 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 12:45:50 pyenv() { 12:45:50 local command 12:45:50 command="${1:-}" 12:45:50 if [ "$#" -gt 0 ]; then 12:45:50 shift 12:45:50 fi 12:45:50 12:45:50 case "$command" in 12:45:50 rehash|shell) 12:45:50 eval "$(pyenv "sh-$command" "$@")" 12:45:50 ;; 12:45:50 *) 12:45:50 command pyenv "$command" "$@" 12:45:50 ;; 12:45:50 esac 12:45:50 }' 12:45:50 +++ bash --norc -ec 'IFS=:; paths=($PATH); 12:45:50 for i in ${!paths[@]}; do 12:45:50 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 12:45:50 fi; done; 12:45:50 echo "${paths[*]}"' 12:45:50 ++ 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 12:45:50 ++ 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 12:45:50 ++ 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 12:45:50 ++ export PYENV_SHELL=bash 12:45:50 ++ PYENV_SHELL=bash 12:45:50 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 12:45:50 +++ complete -F _pyenv pyenv 12:45:50 ++ lf-pyver python3 12:45:50 ++ local py_version_xy=python3 12:45:50 ++ local py_version_xyz= 12:45:50 ++ sed 's/^[ *]* //' 12:45:50 ++ pyenv versions 12:45:50 ++ local command 12:45:50 ++ command=versions 12:45:50 ++ '[' 1 -gt 0 ']' 12:45:50 ++ shift 12:45:50 ++ case "$command" in 12:45:50 ++ command pyenv versions 12:45:50 ++ awk '{ print $1 }' 12:45:50 ++ grep -E '^[0-9.]*[0-9]$' 12:45:50 ++ [[ ! -s /tmp/.pyenv_versions ]] 12:45:50 +++ grep '^3' /tmp/.pyenv_versions 12:45:50 +++ sort -V 12:45:50 +++ tail -n 1 12:45:50 ++ py_version_xyz=3.11.10 12:45:50 ++ [[ -z 3.11.10 ]] 12:45:50 ++ echo 3.11.10 12:45:50 ++ return 0 12:45:50 + pyenv local 3.11.10 12:45:50 + local command 12:45:50 + command=local 12:45:50 + '[' 2 -gt 0 ']' 12:45:50 + shift 12:45:50 + case "$command" in 12:45:50 + command pyenv local 3.11.10 12:45:50 + for arg in "$@" 12:45:50 + case $arg in 12:45:50 + pkg_list+='tox ' 12:45:50 + for arg in "$@" 12:45:50 + case $arg in 12:45:50 + pkg_list+='virtualenv ' 12:45:50 + for arg in "$@" 12:45:50 + case $arg in 12:45:50 + pkg_list+='urllib3~=1.26.15 ' 12:45:50 + [[ -f /tmp/.toxenv ]] 12:45:50 ++ cat /tmp/.toxenv 12:45:50 + lf_venv=/tmp/venv-KXmy 12:45:50 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-KXmy from' file:/tmp/.toxenv 12:45:50 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-KXmy from file:/tmp/.toxenv 12:45:50 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 12:45:50 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:45:50 + local 'pip_opts=--upgrade --quiet' 12:45:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 12:45:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 12:45:50 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 12:45:50 + [[ -n '' ]] 12:45:50 + [[ -n '' ]] 12:45:50 + lf-venv-pip-install /tmp/venv-KXmy/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 12:45:50 + local venv_python=/tmp/venv-KXmy/bin/python3 12:45:50 + shift 12:45:50 + local upstream=https://pypi.org/simple 12:45:50 + /tmp/venv-KXmy/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 12:45:51 + return 0 12:45:51 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 12:45:51 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 12:45:51 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 12:45:51 + lf-venv-pip-install /tmp/venv-KXmy/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 12:45:51 + local venv_python=/tmp/venv-KXmy/bin/python3 12:45:51 + shift 12:45:51 + local upstream=https://pypi.org/simple 12:45:51 + /tmp/venv-KXmy/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 12:45:53 + return 0 12:45:53 + type python3 12:45:53 + true 12:45:53 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-KXmy/bin to PATH' 12:45:53 lf-activate-venv(): INFO: Adding /tmp/venv-KXmy/bin to PATH 12:45:53 + PATH=/tmp/venv-KXmy/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 12:45:53 + return 0 12:45:53 + [[ -d /opt/pyenv ]] 12:45:53 + echo '---> Setting up pyenv' 12:45:53 ---> Setting up pyenv 12:45:53 + export PYENV_ROOT=/opt/pyenv 12:45:53 + PYENV_ROOT=/opt/pyenv 12:45:53 + export PATH=/opt/pyenv/bin:/tmp/venv-KXmy/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 12:45:53 + PATH=/opt/pyenv/bin:/tmp/venv-KXmy/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 12:45:53 ++ pwd 12:45:53 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 12:45:53 + export PYTHONPATH 12:45:53 + export TOX_TESTENV_PASSENV=PYTHONPATH 12:45:53 + TOX_TESTENV_PASSENV=PYTHONPATH 12:45:53 + tox --version 12:45:53 4.64.9 from /tmp/venv-KXmy/lib/python3.11/site-packages/tox/__init__.py 12:45:53 + PARALLEL=True 12:45:53 + TOX_OPTIONS_LIST= 12:45:53 + [[ -n '' ]] 12:45:53 + case ${PARALLEL,,} in 12:45:53 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 12:45:53 + tox --parallel auto --parallel-live 12:45:53 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 12:45:54 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 12:45:54 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 12:45:55 checkbashisms: freeze> python -m pip freeze --all 12:45:55 docs: install_deps> python -I -m pip install -r docs/requirements.txt 12:45:55 checkbashisms: pip==26.2.1,setuptools==84.0.0 12:45:55 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:45:55 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)' 12:45:55 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 12:45:56 checkbashisms: OK ✔ in 3.06 seconds 12:45:56 pre-commit: install_deps> python -I -m pip install pre-commit 12:45:59 pre-commit: freeze> python -m pip freeze --all 12:45:59 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.4,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 12:45:59 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 12:45:59 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)' 12:45:59 /usr/bin/cpan 12:45:59 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 12:45:59 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 12:46:00 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 12:46:01 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 12:46:02 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:46:02 buildcontroller: freeze> python -m pip freeze --all 12:46:02 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 12:46:02 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:02 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 12:46:02 + update-java-alternatives -l 12:46:02 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 12:46:02 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 12:46:02 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 12:46:02 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 12:46:02 update-alternatives: error: no alternatives for jaotc 12:46:02 update-alternatives: error: no alternatives for rmic 12:46:02 + java -version 12:46:02 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 12:46:02 + JAVA_VER=21.0 12:46:02 + echo 21.0 12:46:02 21.0 12:46:02 + javac -version 12:46:02 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 12:46:03 + JAVAC_VER=21.0 12:46:03 + echo 21.0 12:46:03 21.0 12:46:03 No java21 or newer available 12:46:03 + [ 21.0 -ge 21 ] 12:46:03 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 12:46:03 + echo No java21 or newer available 12:46:03 + exit 1 12:46:03 buildcontroller: exit 1 (0.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2782 12:46:03 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 12:46:03 buildcontroller: FAIL ✖ in 9.46 seconds 12:46:03 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 12:46:04 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 12:46:04 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 12:46:05 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 12:46:05 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 12:46:05 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 12:46:05 [INFO] Once installed this environment will be reused. 12:46:05 [INFO] This may take a few minutes... 12:46:06 pylint: freeze> python -m pip freeze --all 12:46:07 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.4,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 12:46:07 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}$' '{}' + 12:46:09 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 12:46:09 [INFO] Once installed this environment will be reused. 12:46:09 [INFO] This may take a few minutes... 12:46:09 docs: freeze> python -m pip freeze --all 12:46:09 docs-linkcheck: freeze> python -m pip freeze --all 12:46:10 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 12:46:10 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 12:46:10 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 12:46:10 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 12:46:12 docs: OK ✔ in 19.19 seconds 12:46:12 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 12:46:15 docs-linkcheck: OK ✔ in 21.3 seconds 12:46:15 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 12:46:15 [INFO] Installing environment for https://github.com/hhatto/autopep8. 12:46:15 [INFO] Once installed this environment will be reused. 12:46:15 [INFO] This may take a few minutes... 12:46:18 [INFO] Installing environment for https://github.com/perltidy/perltidy. 12:46:18 [INFO] Once installed this environment will be reused. 12:46:18 [INFO] This may take a few minutes... 12:46:19 build_karaf_tests221: freeze> python -m pip freeze --all 12:46:19 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:19 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:46:19 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 12:46:19 ./build_karaf_for_tests.sh: 22: mvn: not found 12:46:19 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 12:46:19 build karaf in karaf221 with ./karaf221.env 12:46:19 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3343 12:46:19 build_karaf_tests221: FAIL ✖ in 6.8 seconds 12:46:19 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 12:46:21 build_karaf_tests71: freeze> python -m pip freeze --all 12:46:21 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:21 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:46:21 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 12:46:21 ./build_karaf_for_tests.sh: 22: mvn: not found 12:46:21 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 12:46:21 build karaf in karaf71 with ./karaf71.env 12:46:21 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3367 12:46:21 build_karaf_tests71: FAIL ✖ in 6.74 seconds 12:46:21 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 12:46:23 ************* Module 2.2.1.test12_end2end 12:46:23 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 ************* Module common.test_utils 12:46:23 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 12:46:23 12:46:23 ----------------------------------- 12:46:23 Your code has been rated at 9.99/10 12:46:23 12:46:25 pylint: exit 1 (18.09 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=3213 12:46:25 pylint: FAIL ✖ in 22.06 seconds 12:46:25 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 12:46:26 build_karaf_tests200: freeze> python -m pip freeze --all 12:46:26 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:26 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 12:46:26 build karaf in karafoc200 with ./karafoc200.env 12:46:26 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 12:46:26 ./build_karaf_for_tests.sh: 22: mvn: not found 12:46:26 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 12:46:26 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3494 12:46:26 build_karaf_tests200: FAIL ✖ in 6.62 seconds 12:46:26 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 12:46:26 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 12:46:26 [INFO] Once installed this environment will be reused. 12:46:26 [INFO] This may take a few minutes... 12:46:28 buildlighty: freeze> python -m pip freeze --all 12:46:28 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:28 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 12:46:28 ./build.sh: 7: mvn: not found 12:46:28 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 12:46:28 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3606 12:46:29 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 12:46:29 [INFO] Once installed this environment will be reused. 12:46:29 [INFO] This may take a few minutes... 12:46:31 buildlighty: FAIL ✖ in 6.63 seconds 12:46:31 sims: freeze> python -m pip freeze --all 12:46:32 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:46:32 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 12:46:32 Using lighynode version 22.1.0.7 12:46:32 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 12:46:34 trim trailing whitespace.................................................Passed 12:46:34 fix end of files.........................................................Passed 12:46:34 check for added large files..............................................Passed 12:46:34 check for merge conflicts................................................Passed 12:46:34 check for case conflicts.................................................Passed 12:46:34 check json...............................................................Passed 12:46:34 mixed line ending........................................................Passed 12:46:34 Tabs remover.............................................................Passed 12:46:35 autopep8.................................................................Passed 12:46:36 perltidy.................................................................Passed 12:46:37 ShellCheck v0.11.0.......................................................Passed 12:46:41 prettier.................................................................Failed 12:46:42 - hook id: prettier 12:46:42 - files were modified by this hook 12:46:42 12:46:42 .github/workflows/gerrit-maven-merge.yaml 12:46:42 .github/workflows/gerrit-maven-merge-stable.yaml 12:46:42 12:46:42 yamllint.................................................................Passed 12:46:42 pre-commit hook(s) made changes. 12:46:42 If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. 12:46:42 To run `pre-commit` as part of git workflow, use `pre-commit install`. 12:46:42 All changes made by hooks: 12:46:42 diff --git a/.github/workflows/gerrit-maven-merge-stable.yaml b/.github/workflows/gerrit-maven-merge-stable.yaml 12:46:42 index 4f30226fa..92b0dff72 100644 12:46:42 --- a/.github/workflows/gerrit-maven-merge-stable.yaml 12:46:42 +++ b/.github/workflows/gerrit-maven-merge-stable.yaml 12:46:42 @@ -45,7 +45,7 @@ jobs: 12:46:42 group: gerrit-maven-merge-${{ matrix.GERRIT_BRANCH }} 12:46:42 cancel-in-progress: false 12:46:42 # yamllint disable-line rule:line-length 12:46:42 - uses: lfit/releng-reusable-workflows/.github/workflows/compose-maven-merge.yaml@fb907909b12bbaf262de6b24fcafd181cabe6b24 # v0.10.4 12:46:42 + uses: lfit/releng-reusable-workflows/.github/workflows/compose-maven-merge.yaml@fb907909b12bbaf262de6b24fcafd181cabe6b24 # v0.10.4 12:46:42 # "secrets: inherit" does not cross organisations, and this workflow 12:46:42 # lives in the lfit org, so the secrets have to be passed by name. 12:46:42 secrets: 12:46:42 diff --git a/.github/workflows/gerrit-maven-merge.yaml b/.github/workflows/gerrit-maven-merge.yaml 12:46:42 index 43ed7ea7d..333b7ae2d 100644 12:46:42 --- a/.github/workflows/gerrit-maven-merge.yaml 12:46:42 +++ b/.github/workflows/gerrit-maven-merge.yaml 12:46:42 @@ -102,7 +102,7 @@ jobs: 12:46:42 maven-merge: 12:46:42 needs: prepare 12:46:42 # yamllint disable-line rule:line-length 12:46:42 - uses: lfit/releng-reusable-workflows/.github/workflows/compose-maven-merge.yaml@fb907909b12bbaf262de6b24fcafd181cabe6b24 # v0.10.4 12:46:42 + uses: lfit/releng-reusable-workflows/.github/workflows/compose-maven-merge.yaml@fb907909b12bbaf262de6b24fcafd181cabe6b24 # v0.10.4 12:46:42 # "secrets: inherit" does not cross organisations, and this workflow 12:46:42 # lives in the lfit org, so the secrets have to be passed by name. 12:46:42 secrets: 12:46:42 sims: OK ✔ in 12.05 seconds 12:46:42 pre-commit: exit 1 (42.92 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure pid=2584 12:47:13 pre-commit: FAIL ✖ in 45.92 seconds 12:47:13 testsPCE: freeze> python -m pip freeze --all 12:47:13 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,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 12:47:13 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 12:47:13 pytest -q transportpce_tests/pce/test01_pce.py 12:49:14 EEEEEEEEEEEEEEEEEEEE [100%] 12:49:17 ==================================== ERRORS ==================================== 12:49:17 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 12:49:17 12:49:17 cls = 12:49:17 12:49:17 @classmethod 12:49:17 def setUpClass(cls): 12:49:17 # pylint: disable=bare-except 12:49:17 sample_files_parsed = False 12:49:17 time.sleep(20) 12:49:17 try: 12:49:17 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:49:17 "..", "..", "sample_configs", "honeynode-topo.json") 12:49:17 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 12:49:17 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 12:49:17 12:49:17 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:49:17 "..", "..", "sample_configs", "NW-simple-topology.json") 12:49:17 12:49:17 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 12:49:17 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 12:49:17 12:49:17 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:49:17 "..", "..", "sample_configs", "NW-for-test-5-4.json") 12:49:17 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 12:49:17 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 12:49:17 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 12:49:17 "..", "..", "sample_configs", "pce_portmapping_221.json") 12:49:17 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 12:49:17 cls.port_mapping_data = port_mapping.read() 12:49:17 sample_files_parsed = True 12:49:17 except PermissionError as err: 12:49:17 print("Permission Error when trying to read sample files\n", err) 12:49:17 sys.exit(2) 12:49:17 except FileNotFoundError as err: 12:49:17 print("File Not found Error when trying to read sample files\n", err) 12:49:17 sys.exit(2) 12:49:17 except: 12:49:17 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 12:49:17 sys.exit(2) 12:49:17 finally: 12:49:17 if sample_files_parsed: 12:49:17 print("sample files content loaded") 12:49:17 12:49:17 > cls.processes = test_utils.start_tpce() 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 12:49:17 transportpce_tests/pce/test01_pce.py:93: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 def start_tpce(): 12:49:17 if 'NO_ODL_STARTUP' in os.environ: 12:49:17 print('No OpenDaylight instance to start!') 12:49:17 return [] 12:49:17 print('starting OpenDaylight...') 12:49:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:49:17 process = start_lighty() 12:49:17 else: 12:49:17 process = start_karaf() 12:49:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:49:17 print('OpenDaylight started !') 12:49:17 else: 12:49:17 print('OpenDaylight failed to start !') 12:49:17 shutdown_process(process) 12:49:17 for pid in process_list: 12:49:17 shutdown_process(pid) 12:49:17 > sys.exit(1) 12:49:17 E SystemExit: 1 12:49:17 12:49:17 transportpce_tests/common/test_utils.py:234: SystemExit 12:49:17 ---------------------------- Captured stdout setup ----------------------------- 12:49:17 sample files content loaded 12:49:17 starting OpenDaylight... 12:49:17 starting KARAF (karaf) TransportPCE build... 12:49:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:49:17 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177380> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718bc40> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718b420> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177380> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718b1a0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718b6a0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d56acdda0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177ec0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177380> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177ec0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d56acd940> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718b1a0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177380> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d56ace980> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57188540> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d57177380> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d56ace2a0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d5718b1a0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 12:49:17 12:49:17 cls = 12:49:17 func = . at 0x7f8d571882c0> 12:49:17 when = 'setup' 12:49:17 reraise = (, ) 12:49:17 12:49:17 @classmethod 12:49:17 def from_call( 12:49:17 cls, 12:49:17 func: Callable[[], TResult], 12:49:17 when: Literal["collect", "setup", "call", "teardown"], 12:49:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:49:17 ) -> CallInfo[TResult]: 12:49:17 """Call func, wrapping the result in a CallInfo. 12:49:17 12:49:17 :param func: 12:49:17 The function to call. Called without arguments. 12:49:17 :type func: Callable[[], _pytest.runner.TResult] 12:49:17 :param when: 12:49:17 The phase in which the function is called. 12:49:17 :param reraise: 12:49:17 Exception or exceptions that shall propagate if raised by the 12:49:17 function, instead of being wrapped in the CallInfo. 12:49:17 """ 12:49:17 excinfo = None 12:49:17 instant = timing.Instant() 12:49:17 try: 12:49:17 > result: TResult | None = func() 12:49:17 ^^^^^^ 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:49:17 lambda: runtest_hook(item=item, **kwds), 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:49:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:49:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:49:17 yield 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:49:17 return (yield) 12:49:17 ^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:49:17 item.session._setupstate.setup(item) 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:49:17 col.setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:49:17 super().setup() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:49:17 self._request._fillfixtures() 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:49:17 item.funcargs[argname] = self.getfixturevalue(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:49:17 fixturedef = self._get_active_fixturedef(argname) 12:49:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:49:17 fixturedef.execute(request=subrequest) 12:49:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:49:17 12:49:17 self = 12:49:17 request = > 12:49:17 12:49:17 def execute(self, request: SubRequest) -> FixtureValue: 12:49:17 """Return the value of this fixture, executing it if not cached.""" 12:49:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:49:17 # This needs to be done before checking if we have a cached value, since 12:49:17 # if a dependent fixture has their cache invalidated, e.g. due to 12:49:17 # parametrization, they finalize themselves and fixtures depending on it 12:49:17 # (which will likely include this fixture) setting `self.cached_result = None`. 12:49:17 # See #4871 12:49:17 requested_fixtures_that_should_finalize_us = [] 12:49:17 for argname in self.argnames: 12:49:17 fixturedef = request._get_active_fixturedef(argname) 12:49:17 # Saves requested fixtures in a list so we later can add our finalizer 12:49:17 # to them, ensuring that if a requested fixture gets torn down we get torn 12:49:17 # down first. This is generally handled by SetupState, but still currently 12:49:17 # needed when this fixture is not parametrized but depends on a parametrized 12:49:17 # fixture. 12:49:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:49:17 12:49:17 # Check for (and return) cached value/exception. 12:49:17 if self.cached_result is not None: 12:49:17 request_cache_key = self.cache_key(request) 12:49:17 cache_key = self.cached_result[1] 12:49:17 try: 12:49:17 # Attempt to make a normal == check: this might fail for objects 12:49:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:49:17 cache_hit = bool(request_cache_key == cache_key) 12:49:17 except (ValueError, RuntimeError): 12:49:17 # If the comparison raises, use 'is' as fallback. 12:49:17 cache_hit = request_cache_key is cache_key 12:49:17 12:49:17 if cache_hit: 12:49:17 if self.cached_result[2] is not None: 12:49:17 exc, exc_tb = self.cached_result[2] 12:49:17 raise exc.with_traceback(exc_tb) 12:49:17 else: 12:49:17 return self.cached_result[0] 12:49:17 # We have a previous but differently parametrized fixture instance 12:49:17 # so we need to tear it down before creating a new one. 12:49:17 self.finish(request) 12:49:17 assert self.cached_result is None 12:49:17 12:49:17 # Add finalizer to requested fixtures we saved previously. 12:49:17 # We make sure to do this after checking for cached value to avoid 12:49:17 # adding our finalizer multiple times. (#12135) 12:49:17 finalizer = functools.partial(self.finish, request=request) 12:49:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:49:17 parent_fixture.addfinalizer(finalizer) 12:49:17 12:49:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:49:17 # which is executed last. 12:49:17 > assert not self._finalizers 12:49:17 ^^^^^^^^^^^^^^^^^^^^ 12:49:17 E AssertionError 12:49:17 12:49:17 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:49:17 =========================== short test summary info ============================ 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 12:49:17 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 12:49:17 20 errors in 123.82s (0:02:03) 12:49:17 testsPCE: exit 1 (124.12 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4088 12:49:17 testsPCE: FAIL ✖ in 2 minutes 51.27 seconds 12:49:17 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 12:49:25 tests_tapi: freeze> python -m pip freeze --all 12:49:25 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:49:25 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 12:49:25 using environment variables from ./karaf221.env 12:49:25 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 12:51:05 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 12:51:14 ==================================== ERRORS ==================================== 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 12:51:14 12:51:14 cls = 12:51:14 12:51:14 @classmethod 12:51:14 def setUpClass(cls): 12:51:14 cls.init_failed = False 12:51:14 os.environ['JAVA_MIN_MEM'] = '1024M' 12:51:14 os.environ['JAVA_MAX_MEM'] = '4096M' 12:51:14 > cls.processes = test_utils.start_tpce() 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 12:51:14 transportpce_tests/tapi/test01_abstracted_topology.py:148: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 def start_tpce(): 12:51:14 if 'NO_ODL_STARTUP' in os.environ: 12:51:14 print('No OpenDaylight instance to start!') 12:51:14 return [] 12:51:14 print('starting OpenDaylight...') 12:51:14 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:51:14 process = start_lighty() 12:51:14 else: 12:51:14 process = start_karaf() 12:51:14 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:51:14 print('OpenDaylight started !') 12:51:14 else: 12:51:14 print('OpenDaylight failed to start !') 12:51:14 shutdown_process(process) 12:51:14 for pid in process_list: 12:51:14 shutdown_process(pid) 12:51:14 > sys.exit(1) 12:51:14 E SystemExit: 1 12:51:14 12:51:14 transportpce_tests/common/test_utils.py:234: SystemExit 12:51:14 ---------------------------- Captured stdout setup ----------------------------- 12:51:14 starting OpenDaylight... 12:51:14 starting KARAF (karaf221) TransportPCE build... 12:51:14 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06f740> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d0bfc40> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41e9c3060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d0bf100> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06db20> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d0bf6a0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e2a0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca6020> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06da80> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca65c0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e8e0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e480> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d0bf100> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e480> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e8e0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41f767060> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca5bc0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e8e0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca5bc0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca4d60> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e8e0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca47c0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca6ac0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41d06e8e0> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:14 request = > 12:51:14 12:51:14 def execute(self, request: SubRequest) -> FixtureValue: 12:51:14 """Return the value of this fixture, executing it if not cached.""" 12:51:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:14 # This needs to be done before checking if we have a cached value, since 12:51:14 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:14 # parametrization, they finalize themselves and fixtures depending on it 12:51:14 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:14 # See #4871 12:51:14 requested_fixtures_that_should_finalize_us = [] 12:51:14 for argname in self.argnames: 12:51:14 fixturedef = request._get_active_fixturedef(argname) 12:51:14 # Saves requested fixtures in a list so we later can add our finalizer 12:51:14 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:14 # down first. This is generally handled by SetupState, but still currently 12:51:14 # needed when this fixture is not parametrized but depends on a parametrized 12:51:14 # fixture. 12:51:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:14 12:51:14 # Check for (and return) cached value/exception. 12:51:14 if self.cached_result is not None: 12:51:14 request_cache_key = self.cache_key(request) 12:51:14 cache_key = self.cached_result[1] 12:51:14 try: 12:51:14 # Attempt to make a normal == check: this might fail for objects 12:51:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:14 cache_hit = bool(request_cache_key == cache_key) 12:51:14 except (ValueError, RuntimeError): 12:51:14 # If the comparison raises, use 'is' as fallback. 12:51:14 cache_hit = request_cache_key is cache_key 12:51:14 12:51:14 if cache_hit: 12:51:14 if self.cached_result[2] is not None: 12:51:14 exc, exc_tb = self.cached_result[2] 12:51:14 raise exc.with_traceback(exc_tb) 12:51:14 else: 12:51:14 return self.cached_result[0] 12:51:14 # We have a previous but differently parametrized fixture instance 12:51:14 # so we need to tear it down before creating a new one. 12:51:14 self.finish(request) 12:51:14 assert self.cached_result is None 12:51:14 12:51:14 # Add finalizer to requested fixtures we saved previously. 12:51:14 # We make sure to do this after checking for cached value to avoid 12:51:14 # adding our finalizer multiple times. (#12135) 12:51:14 finalizer = functools.partial(self.finish, request=request) 12:51:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:14 parent_fixture.addfinalizer(finalizer) 12:51:14 12:51:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:14 # which is executed last. 12:51:14 > assert not self._finalizers 12:51:14 ^^^^^^^^^^^^^^^^^^^^ 12:51:14 E AssertionError 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:14 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 12:51:14 12:51:14 cls = 12:51:14 func = . at 0x7fb41cca5300> 12:51:14 when = 'setup' 12:51:14 reraise = (, ) 12:51:14 12:51:14 @classmethod 12:51:14 def from_call( 12:51:14 cls, 12:51:14 func: Callable[[], TResult], 12:51:14 when: Literal["collect", "setup", "call", "teardown"], 12:51:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:14 ) -> CallInfo[TResult]: 12:51:14 """Call func, wrapping the result in a CallInfo. 12:51:14 12:51:14 :param func: 12:51:14 The function to call. Called without arguments. 12:51:14 :type func: Callable[[], _pytest.runner.TResult] 12:51:14 :param when: 12:51:14 The phase in which the function is called. 12:51:14 :param reraise: 12:51:14 Exception or exceptions that shall propagate if raised by the 12:51:14 function, instead of being wrapped in the CallInfo. 12:51:14 """ 12:51:14 excinfo = None 12:51:14 instant = timing.Instant() 12:51:14 try: 12:51:14 > result: TResult | None = func() 12:51:14 ^^^^^^ 12:51:14 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:14 lambda: runtest_hook(item=item, **kwds), 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:14 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:14 yield 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:14 return (yield) 12:51:14 ^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:14 item.session._setupstate.setup(item) 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:14 col.setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:14 super().setup() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:14 self._request._fillfixtures() 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:14 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:14 fixturedef = self._get_active_fixturedef(argname) 12:51:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:14 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:14 fixturedef.execute(request=subrequest) 12:51:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:14 12:51:14 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca6ac0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca5a80> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca6fc0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca5e40> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca6020> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca6340> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca6340> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca7240> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca7420> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca7560> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca63e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca5a80> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41d06e8e0> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 12:51:15 12:51:15 cls = 12:51:15 func = . at 0x7fb41cca7060> 12:51:15 when = 'setup' 12:51:15 reraise = (, ) 12:51:15 12:51:15 @classmethod 12:51:15 def from_call( 12:51:15 cls, 12:51:15 func: Callable[[], TResult], 12:51:15 when: Literal["collect", "setup", "call", "teardown"], 12:51:15 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:51:15 ) -> CallInfo[TResult]: 12:51:15 """Call func, wrapping the result in a CallInfo. 12:51:15 12:51:15 :param func: 12:51:15 The function to call. Called without arguments. 12:51:15 :type func: Callable[[], _pytest.runner.TResult] 12:51:15 :param when: 12:51:15 The phase in which the function is called. 12:51:15 :param reraise: 12:51:15 Exception or exceptions that shall propagate if raised by the 12:51:15 function, instead of being wrapped in the CallInfo. 12:51:15 """ 12:51:15 excinfo = None 12:51:15 instant = timing.Instant() 12:51:15 try: 12:51:15 > result: TResult | None = func() 12:51:15 ^^^^^^ 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:51:15 lambda: runtest_hook(item=item, **kwds), 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:51:15 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:51:15 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:51:15 yield 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:51:15 return (yield) 12:51:15 ^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:51:15 item.session._setupstate.setup(item) 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:51:15 col.setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:51:15 super().setup() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:51:15 self._request._fillfixtures() 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:51:15 item.funcargs[argname] = self.getfixturevalue(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:51:15 fixturedef = self._get_active_fixturedef(argname) 12:51:15 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:51:15 fixturedef.execute(request=subrequest) 12:51:15 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:51:15 12:51:15 self = 12:51:15 request = > 12:51:15 12:51:15 def execute(self, request: SubRequest) -> FixtureValue: 12:51:15 """Return the value of this fixture, executing it if not cached.""" 12:51:15 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:51:15 # This needs to be done before checking if we have a cached value, since 12:51:15 # if a dependent fixture has their cache invalidated, e.g. due to 12:51:15 # parametrization, they finalize themselves and fixtures depending on it 12:51:15 # (which will likely include this fixture) setting `self.cached_result = None`. 12:51:15 # See #4871 12:51:15 requested_fixtures_that_should_finalize_us = [] 12:51:15 for argname in self.argnames: 12:51:15 fixturedef = request._get_active_fixturedef(argname) 12:51:15 # Saves requested fixtures in a list so we later can add our finalizer 12:51:15 # to them, ensuring that if a requested fixture gets torn down we get torn 12:51:15 # down first. This is generally handled by SetupState, but still currently 12:51:15 # needed when this fixture is not parametrized but depends on a parametrized 12:51:15 # fixture. 12:51:15 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:51:15 12:51:15 # Check for (and return) cached value/exception. 12:51:15 if self.cached_result is not None: 12:51:15 request_cache_key = self.cache_key(request) 12:51:15 cache_key = self.cached_result[1] 12:51:15 try: 12:51:15 # Attempt to make a normal == check: this might fail for objects 12:51:15 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:51:15 cache_hit = bool(request_cache_key == cache_key) 12:51:15 except (ValueError, RuntimeError): 12:51:15 # If the comparison raises, use 'is' as fallback. 12:51:15 cache_hit = request_cache_key is cache_key 12:51:15 12:51:15 if cache_hit: 12:51:15 if self.cached_result[2] is not None: 12:51:15 exc, exc_tb = self.cached_result[2] 12:51:15 raise exc.with_traceback(exc_tb) 12:51:15 else: 12:51:15 return self.cached_result[0] 12:51:15 # We have a previous but differently parametrized fixture instance 12:51:15 # so we need to tear it down before creating a new one. 12:51:15 self.finish(request) 12:51:15 assert self.cached_result is None 12:51:15 12:51:15 # Add finalizer to requested fixtures we saved previously. 12:51:15 # We make sure to do this after checking for cached value to avoid 12:51:15 # adding our finalizer multiple times. (#12135) 12:51:15 finalizer = functools.partial(self.finish, request=request) 12:51:15 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:51:15 parent_fixture.addfinalizer(finalizer) 12:51:15 12:51:15 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:51:15 # which is executed last. 12:51:15 > assert not self._finalizers 12:51:15 ^^^^^^^^^^^^^^^^^^^^ 12:51:15 E AssertionError 12:51:15 12:51:15 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:51:15 =========================== short test summary info ============================ 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 12:51:15 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 12:51:15 51 errors in 109.49s (0:01:49) 12:51:15 tests_tapi: exit 1 (109.80 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4161 12:51:15 tests_tapi: FAIL ✖ in 1 minute 57.58 seconds 12:51:15 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 12:51:15 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 12:51:22 tests221: freeze> python -m pip freeze --all 12:51:22 tests200: freeze> python -m pip freeze --all 12:51:22 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:51:22 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 12:51:22 using environment variables from ./karaf221.env 12:51:22 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 12:51:22 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:51:22 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 12:51:22 using environment variables from ./karafoc200.env 12:51:22 pytest -q transportpce_tests/oc200/test01_portmapping.py 12:53:02 EEEEEEEEEEEEEEEEEEE [100%] 12:53:04 ==================================== ERRORS ==================================== 12:53:04 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 12:53:04 12:53:04 cls = 12:53:04 12:53:04 @classmethod 12:53:04 def setUpClass(cls): 12:53:04 > cls.processes = test_utils.start_tpce() 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 12:53:04 transportpce_tests/oc200/test01_portmapping.py:29: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 def start_tpce(): 12:53:04 if 'NO_ODL_STARTUP' in os.environ: 12:53:04 print('No OpenDaylight instance to start!') 12:53:04 return [] 12:53:04 print('starting OpenDaylight...') 12:53:04 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:53:04 process = start_lighty() 12:53:04 else: 12:53:04 process = start_karaf() 12:53:04 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:53:04 print('OpenDaylight started !') 12:53:04 else: 12:53:04 print('OpenDaylight failed to start !') 12:53:04 shutdown_process(process) 12:53:04 for pid in process_list: 12:53:04 shutdown_process(pid) 12:53:04 > sys.exit(1) 12:53:04 E SystemExit: 1 12:53:04 12:53:04 transportpce_tests/common/test_utils.py:234: SystemExit 12:53:04 ---------------------------- Captured stdout setup ----------------------------- 12:53:04 starting OpenDaylight... 12:53:04 starting KARAF (karafoc200) TransportPCE build... 12:53:04 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe1324fb420> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe12fe07ec0> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe1315af600> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe12fde3740> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe1324fb420> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe1315af600> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe12fe07880> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe12fe076a0> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 12:53:04 12:53:04 cls = 12:53:04 func = . at 0x7fe12fe07600> 12:53:04 when = 'setup' 12:53:04 reraise = (, ) 12:53:04 12:53:04 @classmethod 12:53:04 def from_call( 12:53:04 cls, 12:53:04 func: Callable[[], TResult], 12:53:04 when: Literal["collect", "setup", "call", "teardown"], 12:53:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:04 ) -> CallInfo[TResult]: 12:53:04 """Call func, wrapping the result in a CallInfo. 12:53:04 12:53:04 :param func: 12:53:04 The function to call. Called without arguments. 12:53:04 :type func: Callable[[], _pytest.runner.TResult] 12:53:04 :param when: 12:53:04 The phase in which the function is called. 12:53:04 :param reraise: 12:53:04 Exception or exceptions that shall propagate if raised by the 12:53:04 function, instead of being wrapped in the CallInfo. 12:53:04 """ 12:53:04 excinfo = None 12:53:04 instant = timing.Instant() 12:53:04 try: 12:53:04 > result: TResult | None = func() 12:53:04 ^^^^^^ 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:04 lambda: runtest_hook(item=item, **kwds), 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:04 yield 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:04 return (yield) 12:53:04 ^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:04 item.session._setupstate.setup(item) 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:04 col.setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:04 super().setup() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:04 self._request._fillfixtures() 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:04 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:04 fixturedef = self._get_active_fixturedef(argname) 12:53:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:04 fixturedef.execute(request=subrequest) 12:53:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:04 12:53:04 self = 12:53:04 request = > 12:53:04 12:53:04 def execute(self, request: SubRequest) -> FixtureValue: 12:53:04 """Return the value of this fixture, executing it if not cached.""" 12:53:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:04 # This needs to be done before checking if we have a cached value, since 12:53:04 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:04 # parametrization, they finalize themselves and fixtures depending on it 12:53:04 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:04 # See #4871 12:53:04 requested_fixtures_that_should_finalize_us = [] 12:53:04 for argname in self.argnames: 12:53:04 fixturedef = request._get_active_fixturedef(argname) 12:53:04 # Saves requested fixtures in a list so we later can add our finalizer 12:53:04 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:04 # down first. This is generally handled by SetupState, but still currently 12:53:04 # needed when this fixture is not parametrized but depends on a parametrized 12:53:04 # fixture. 12:53:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:04 12:53:04 # Check for (and return) cached value/exception. 12:53:04 if self.cached_result is not None: 12:53:04 request_cache_key = self.cache_key(request) 12:53:04 cache_key = self.cached_result[1] 12:53:04 try: 12:53:04 # Attempt to make a normal == check: this might fail for objects 12:53:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:04 cache_hit = bool(request_cache_key == cache_key) 12:53:04 except (ValueError, RuntimeError): 12:53:04 # If the comparison raises, use 'is' as fallback. 12:53:04 cache_hit = request_cache_key is cache_key 12:53:04 12:53:04 if cache_hit: 12:53:04 if self.cached_result[2] is not None: 12:53:04 exc, exc_tb = self.cached_result[2] 12:53:04 raise exc.with_traceback(exc_tb) 12:53:04 else: 12:53:04 return self.cached_result[0] 12:53:04 # We have a previous but differently parametrized fixture instance 12:53:04 # so we need to tear it down before creating a new one. 12:53:04 self.finish(request) 12:53:04 assert self.cached_result is None 12:53:04 12:53:04 # Add finalizer to requested fixtures we saved previously. 12:53:04 # We make sure to do this after checking for cached value to avoid 12:53:04 # adding our finalizer multiple times. (#12135) 12:53:04 finalizer = functools.partial(self.finish, request=request) 12:53:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:04 parent_fixture.addfinalizer(finalizer) 12:53:04 12:53:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:04 # which is executed last. 12:53:04 > assert not self._finalizers 12:53:04 ^^^^^^^^^^^^^^^^^^^^ 12:53:04 E AssertionError 12:53:04 12:53:04 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:04 =========================== short test summary info ============================ 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 12:53:04 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 12:53:04 10 errors in 101.94s (0:01:41) 12:53:04 tests200: exit 1 (102.24 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4320 12:53:04 Etests200: FAIL ✖ in 1 minute 49.61 seconds 12:53:04 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 12:53:05 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 12:53:09 ==================================== ERRORS ==================================== 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 12:53:09 12:53:09 cls = 12:53:09 12:53:09 @classmethod 12:53:09 def setUpClass(cls): 12:53:09 > cls.processes = test_utils.start_tpce() 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 12:53:09 transportpce_tests/2.2.1/test01_portmapping.py:33: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 def start_tpce(): 12:53:09 if 'NO_ODL_STARTUP' in os.environ: 12:53:09 print('No OpenDaylight instance to start!') 12:53:09 return [] 12:53:09 print('starting OpenDaylight...') 12:53:09 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:53:09 process = start_lighty() 12:53:09 else: 12:53:09 process = start_karaf() 12:53:09 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:53:09 print('OpenDaylight started !') 12:53:09 else: 12:53:09 print('OpenDaylight failed to start !') 12:53:09 shutdown_process(process) 12:53:09 for pid in process_list: 12:53:09 shutdown_process(pid) 12:53:09 > sys.exit(1) 12:53:09 E SystemExit: 1 12:53:09 12:53:09 transportpce_tests/common/test_utils.py:234: SystemExit 12:53:09 ---------------------------- Captured stdout setup ----------------------------- 12:53:09 starting OpenDaylight... 12:53:09 starting KARAF (karaf221) TransportPCE build... 12:53:09 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:53:09 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e793100> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7932e0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f8090e97240> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e793100> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791120> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d2d40> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791120> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d3f60> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791120> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d2520> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d3d80> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791120> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7920c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791f80> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e791f80> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f80900a7060> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7fc4a0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7fd800> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7fc540> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7fd6c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 12:53:09 12:53:09 cls = 12:53:09 func = . at 0x7f808e7d39c0> 12:53:09 when = 'setup' 12:53:09 reraise = (, ) 12:53:09 12:53:09 @classmethod 12:53:09 def from_call( 12:53:09 cls, 12:53:09 func: Callable[[], TResult], 12:53:09 when: Literal["collect", "setup", "call", "teardown"], 12:53:09 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:53:09 ) -> CallInfo[TResult]: 12:53:09 """Call func, wrapping the result in a CallInfo. 12:53:09 12:53:09 :param func: 12:53:09 The function to call. Called without arguments. 12:53:09 :type func: Callable[[], _pytest.runner.TResult] 12:53:09 :param when: 12:53:09 The phase in which the function is called. 12:53:09 :param reraise: 12:53:09 Exception or exceptions that shall propagate if raised by the 12:53:09 function, instead of being wrapped in the CallInfo. 12:53:09 """ 12:53:09 excinfo = None 12:53:09 instant = timing.Instant() 12:53:09 try: 12:53:09 > result: TResult | None = func() 12:53:09 ^^^^^^ 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:53:09 lambda: runtest_hook(item=item, **kwds), 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:53:09 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:53:09 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:53:09 yield 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:53:09 return (yield) 12:53:09 ^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:53:09 item.session._setupstate.setup(item) 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:53:09 col.setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:53:09 super().setup() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:53:09 self._request._fillfixtures() 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:53:09 item.funcargs[argname] = self.getfixturevalue(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:53:09 fixturedef = self._get_active_fixturedef(argname) 12:53:09 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:53:09 fixturedef.execute(request=subrequest) 12:53:09 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:53:09 12:53:09 self = 12:53:09 request = > 12:53:09 12:53:09 def execute(self, request: SubRequest) -> FixtureValue: 12:53:09 """Return the value of this fixture, executing it if not cached.""" 12:53:09 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:53:09 # This needs to be done before checking if we have a cached value, since 12:53:09 # if a dependent fixture has their cache invalidated, e.g. due to 12:53:09 # parametrization, they finalize themselves and fixtures depending on it 12:53:09 # (which will likely include this fixture) setting `self.cached_result = None`. 12:53:09 # See #4871 12:53:09 requested_fixtures_that_should_finalize_us = [] 12:53:09 for argname in self.argnames: 12:53:09 fixturedef = request._get_active_fixturedef(argname) 12:53:09 # Saves requested fixtures in a list so we later can add our finalizer 12:53:09 # to them, ensuring that if a requested fixture gets torn down we get torn 12:53:09 # down first. This is generally handled by SetupState, but still currently 12:53:09 # needed when this fixture is not parametrized but depends on a parametrized 12:53:09 # fixture. 12:53:09 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:53:09 12:53:09 # Check for (and return) cached value/exception. 12:53:09 if self.cached_result is not None: 12:53:09 request_cache_key = self.cache_key(request) 12:53:09 cache_key = self.cached_result[1] 12:53:09 try: 12:53:09 # Attempt to make a normal == check: this might fail for objects 12:53:09 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:53:09 cache_hit = bool(request_cache_key == cache_key) 12:53:09 except (ValueError, RuntimeError): 12:53:09 # If the comparison raises, use 'is' as fallback. 12:53:09 cache_hit = request_cache_key is cache_key 12:53:09 12:53:09 if cache_hit: 12:53:09 if self.cached_result[2] is not None: 12:53:09 exc, exc_tb = self.cached_result[2] 12:53:09 raise exc.with_traceback(exc_tb) 12:53:09 else: 12:53:09 return self.cached_result[0] 12:53:09 # We have a previous but differently parametrized fixture instance 12:53:09 # so we need to tear it down before creating a new one. 12:53:09 self.finish(request) 12:53:09 assert self.cached_result is None 12:53:09 12:53:09 # Add finalizer to requested fixtures we saved previously. 12:53:09 # We make sure to do this after checking for cached value to avoid 12:53:09 # adding our finalizer multiple times. (#12135) 12:53:09 finalizer = functools.partial(self.finish, request=request) 12:53:09 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:53:09 parent_fixture.addfinalizer(finalizer) 12:53:09 12:53:09 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:53:09 # which is executed last. 12:53:09 > assert not self._finalizers 12:53:09 ^^^^^^^^^^^^^^^^^^^^ 12:53:09 E AssertionError 12:53:09 12:53:09 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:53:09 =========================== short test summary info ============================ 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 12:53:09 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 12:53:09 35 errors in 106.85s (0:01:46) 12:53:09 tests221: exit 1 (107.13 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4309 12:53:09 tests221: FAIL ✖ in 1 minute 54.42 seconds 12:53:09 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 12:53:12 tests71: freeze> python -m pip freeze --all 12:53:12 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:53:12 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 12:53:12 using environment variables from ./karaf71.env 12:53:12 pytest -q transportpce_tests/7.1/test01_portmapping.py 12:53:15 tests_hybrid: freeze> python -m pip freeze --all 12:53:16 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.1,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 12:53:16 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 12:53:16 using environment variables from ./karaf221.env 12:53:16 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 12:54:53 EEEEEEEEEEEE [100%] 12:54:55 ==================================== ERRORS ==================================== 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 12:54:55 12:54:55 cls = 12:54:55 12:54:55 @classmethod 12:54:55 def setUpClass(cls): 12:54:55 > cls.processes = test_utils.start_tpce() 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 12:54:55 transportpce_tests/7.1/test01_portmapping.py:32: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 def start_tpce(): 12:54:55 if 'NO_ODL_STARTUP' in os.environ: 12:54:55 print('No OpenDaylight instance to start!') 12:54:55 return [] 12:54:55 print('starting OpenDaylight...') 12:54:55 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:54:55 process = start_lighty() 12:54:55 else: 12:54:55 process = start_karaf() 12:54:55 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:54:55 print('OpenDaylight started !') 12:54:55 else: 12:54:55 print('OpenDaylight failed to start !') 12:54:55 shutdown_process(process) 12:54:55 for pid in process_list: 12:54:55 shutdown_process(pid) 12:54:55 > sys.exit(1) 12:54:55 E SystemExit: 1 12:54:55 12:54:55 transportpce_tests/common/test_utils.py:234: SystemExit 12:54:55 ---------------------------- Captured stdout setup ----------------------------- 12:54:55 starting OpenDaylight... 12:54:55 starting KARAF (karaf71) TransportPCE build... 12:54:55 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cfdcf4c0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b7a60> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cefd6fc0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cfdcf2e0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b77e0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cefd6fc0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b7a60> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b5120> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b77e0> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b7600> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 12:54:55 12:54:55 cls = 12:54:55 func = . at 0x7f84cd6b5120> 12:54:55 when = 'setup' 12:54:55 reraise = (, ) 12:54:55 12:54:55 @classmethod 12:54:55 def from_call( 12:54:55 cls, 12:54:55 func: Callable[[], TResult], 12:54:55 when: Literal["collect", "setup", "call", "teardown"], 12:54:55 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:54:55 ) -> CallInfo[TResult]: 12:54:55 """Call func, wrapping the result in a CallInfo. 12:54:55 12:54:55 :param func: 12:54:55 The function to call. Called without arguments. 12:54:55 :type func: Callable[[], _pytest.runner.TResult] 12:54:55 :param when: 12:54:55 The phase in which the function is called. 12:54:55 :param reraise: 12:54:55 Exception or exceptions that shall propagate if raised by the 12:54:55 function, instead of being wrapped in the CallInfo. 12:54:55 """ 12:54:55 excinfo = None 12:54:55 instant = timing.Instant() 12:54:55 try: 12:54:55 > result: TResult | None = func() 12:54:55 ^^^^^^ 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:54:55 lambda: runtest_hook(item=item, **kwds), 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:54:55 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:54:55 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:54:55 yield 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:54:55 return (yield) 12:54:55 ^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:54:55 item.session._setupstate.setup(item) 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:54:55 col.setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:54:55 super().setup() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:54:55 self._request._fillfixtures() 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:54:55 item.funcargs[argname] = self.getfixturevalue(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:54:55 fixturedef = self._get_active_fixturedef(argname) 12:54:55 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:54:55 fixturedef.execute(request=subrequest) 12:54:55 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:54:55 12:54:55 self = 12:54:55 request = > 12:54:55 12:54:55 def execute(self, request: SubRequest) -> FixtureValue: 12:54:55 """Return the value of this fixture, executing it if not cached.""" 12:54:55 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:54:55 # This needs to be done before checking if we have a cached value, since 12:54:55 # if a dependent fixture has their cache invalidated, e.g. due to 12:54:55 # parametrization, they finalize themselves and fixtures depending on it 12:54:55 # (which will likely include this fixture) setting `self.cached_result = None`. 12:54:55 # See #4871 12:54:55 requested_fixtures_that_should_finalize_us = [] 12:54:55 for argname in self.argnames: 12:54:55 fixturedef = request._get_active_fixturedef(argname) 12:54:55 # Saves requested fixtures in a list so we later can add our finalizer 12:54:55 # to them, ensuring that if a requested fixture gets torn down we get torn 12:54:55 # down first. This is generally handled by SetupState, but still currently 12:54:55 # needed when this fixture is not parametrized but depends on a parametrized 12:54:55 # fixture. 12:54:55 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:54:55 12:54:55 # Check for (and return) cached value/exception. 12:54:55 if self.cached_result is not None: 12:54:55 request_cache_key = self.cache_key(request) 12:54:55 cache_key = self.cached_result[1] 12:54:55 try: 12:54:55 # Attempt to make a normal == check: this might fail for objects 12:54:55 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:54:55 cache_hit = bool(request_cache_key == cache_key) 12:54:55 except (ValueError, RuntimeError): 12:54:55 # If the comparison raises, use 'is' as fallback. 12:54:55 cache_hit = request_cache_key is cache_key 12:54:55 12:54:55 if cache_hit: 12:54:55 if self.cached_result[2] is not None: 12:54:55 exc, exc_tb = self.cached_result[2] 12:54:55 raise exc.with_traceback(exc_tb) 12:54:55 else: 12:54:55 return self.cached_result[0] 12:54:55 # We have a previous but differently parametrized fixture instance 12:54:55 # so we need to tear it down before creating a new one. 12:54:55 self.finish(request) 12:54:55 assert self.cached_result is None 12:54:55 12:54:55 # Add finalizer to requested fixtures we saved previously. 12:54:55 # We make sure to do this after checking for cached value to avoid 12:54:55 # adding our finalizer multiple times. (#12135) 12:54:55 finalizer = functools.partial(self.finish, request=request) 12:54:55 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:54:55 parent_fixture.addfinalizer(finalizer) 12:54:55 12:54:55 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:54:55 # which is executed last. 12:54:55 > assert not self._finalizers 12:54:55 ^^^^^^^^^^^^^^^^^^^^ 12:54:55 E AssertionError 12:54:55 12:54:55 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:54:55 =========================== short test summary info ============================ 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 12:54:55 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 12:54:55 12 errors in 102.33s (0:01:42) 12:54:55 tests71: exit 1 (102.61 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4447 12:54:56 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 12:55:05 ==================================== ERRORS ==================================== 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 12:55:05 12:55:05 cls = 12:55:05 12:55:05 @classmethod 12:55:05 def setUpClass(cls): 12:55:05 > cls.processes = test_utils.start_tpce() 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 12:55:05 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 def start_tpce(): 12:55:05 if 'NO_ODL_STARTUP' in os.environ: 12:55:05 print('No OpenDaylight instance to start!') 12:55:05 return [] 12:55:05 print('starting OpenDaylight...') 12:55:05 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 12:55:05 process = start_lighty() 12:55:05 else: 12:55:05 process = start_karaf() 12:55:05 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 12:55:05 print('OpenDaylight started !') 12:55:05 else: 12:55:05 print('OpenDaylight failed to start !') 12:55:05 shutdown_process(process) 12:55:05 for pid in process_list: 12:55:05 shutdown_process(pid) 12:55:05 > sys.exit(1) 12:55:05 E SystemExit: 1 12:55:05 12:55:05 transportpce_tests/common/test_utils.py:234: SystemExit 12:55:05 ---------------------------- Captured stdout setup ----------------------------- 12:55:05 starting OpenDaylight... 12:55:05 starting KARAF (karaf221) TransportPCE build... 12:55:05 Pattern not found after 100 seconds! OpenDaylight failed to start ! 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2eea20> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb343f60> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cd9f2f20> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4ccc593a0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342700> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342980> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342700> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01940> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342700> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01da0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed8a0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb3428e0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb2ed8a0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb3428e0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad020c0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad020c0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad00860> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01440> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01260> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad016c0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01800> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01d00> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01800> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01f80> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad00ea0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01a80> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01a80> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad02a20> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad019e0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01bc0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad01f80> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad025c0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cb342d40> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 12:55:05 12:55:05 cls = 12:55:05 func = . at 0x7ff4cad022a0> 12:55:05 when = 'setup' 12:55:05 reraise = (, ) 12:55:05 12:55:05 @classmethod 12:55:05 def from_call( 12:55:05 cls, 12:55:05 func: Callable[[], TResult], 12:55:05 when: Literal["collect", "setup", "call", "teardown"], 12:55:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 12:55:05 ) -> CallInfo[TResult]: 12:55:05 """Call func, wrapping the result in a CallInfo. 12:55:05 12:55:05 :param func: 12:55:05 The function to call. Called without arguments. 12:55:05 :type func: Callable[[], _pytest.runner.TResult] 12:55:05 :param when: 12:55:05 The phase in which the function is called. 12:55:05 :param reraise: 12:55:05 Exception or exceptions that shall propagate if raised by the 12:55:05 function, instead of being wrapped in the CallInfo. 12:55:05 """ 12:55:05 excinfo = None 12:55:05 instant = timing.Instant() 12:55:05 try: 12:55:05 > result: TResult | None = func() 12:55:05 ^^^^^^ 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 12:55:05 lambda: runtest_hook(item=item, **kwds), 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 12:55:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 12:55:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 12:55:05 yield 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 12:55:05 return (yield) 12:55:05 ^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 12:55:05 item.session._setupstate.setup(item) 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 12:55:05 col.setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 12:55:05 super().setup() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 12:55:05 self._request._fillfixtures() 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 12:55:05 item.funcargs[argname] = self.getfixturevalue(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 12:55:05 fixturedef = self._get_active_fixturedef(argname) 12:55:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 12:55:05 fixturedef.execute(request=subrequest) 12:55:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 12:55:05 12:55:05 self = 12:55:05 request = > 12:55:05 12:55:05 def execute(self, request: SubRequest) -> FixtureValue: 12:55:05 """Return the value of this fixture, executing it if not cached.""" 12:55:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 12:55:05 # This needs to be done before checking if we have a cached value, since 12:55:05 # if a dependent fixture has their cache invalidated, e.g. due to 12:55:05 # parametrization, they finalize themselves and fixtures depending on it 12:55:05 # (which will likely include this fixture) setting `self.cached_result = None`. 12:55:05 # See #4871 12:55:05 requested_fixtures_that_should_finalize_us = [] 12:55:05 for argname in self.argnames: 12:55:05 fixturedef = request._get_active_fixturedef(argname) 12:55:05 # Saves requested fixtures in a list so we later can add our finalizer 12:55:05 # to them, ensuring that if a requested fixture gets torn down we get torn 12:55:05 # down first. This is generally handled by SetupState, but still currently 12:55:05 # needed when this fixture is not parametrized but depends on a parametrized 12:55:05 # fixture. 12:55:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 12:55:05 12:55:05 # Check for (and return) cached value/exception. 12:55:05 if self.cached_result is not None: 12:55:05 request_cache_key = self.cache_key(request) 12:55:05 cache_key = self.cached_result[1] 12:55:05 try: 12:55:05 # Attempt to make a normal == check: this might fail for objects 12:55:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 12:55:05 cache_hit = bool(request_cache_key == cache_key) 12:55:05 except (ValueError, RuntimeError): 12:55:05 # If the comparison raises, use 'is' as fallback. 12:55:05 cache_hit = request_cache_key is cache_key 12:55:05 12:55:05 if cache_hit: 12:55:05 if self.cached_result[2] is not None: 12:55:05 exc, exc_tb = self.cached_result[2] 12:55:05 raise exc.with_traceback(exc_tb) 12:55:05 else: 12:55:05 return self.cached_result[0] 12:55:05 # We have a previous but differently parametrized fixture instance 12:55:05 # so we need to tear it down before creating a new one. 12:55:05 self.finish(request) 12:55:05 assert self.cached_result is None 12:55:05 12:55:05 # Add finalizer to requested fixtures we saved previously. 12:55:05 # We make sure to do this after checking for cached value to avoid 12:55:05 # adding our finalizer multiple times. (#12135) 12:55:05 finalizer = functools.partial(self.finish, request=request) 12:55:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 12:55:05 parent_fixture.addfinalizer(finalizer) 12:55:05 12:55:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 12:55:05 # which is executed last. 12:55:05 > assert not self._finalizers 12:55:05 ^^^^^^^^^^^^^^^^^^^^ 12:55:05 E AssertionError 12:55:05 12:55:05 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 12:55:05 =========================== short test summary info ============================ 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 12:55:05 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 12:55:05 51 errors in 109.49s (0:01:49) 12:55:05 tests71: FAIL ✖ in 1 minute 50.89 seconds 12:55:05 tests_hybrid: exit 1 (109.78 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4463 12:55:05 buildcontroller: FAIL code 1 (9.45=setup[8.91]+cmd[0.55] seconds) 12:55:05 sims: OK (12.05=setup[7.06]+cmd[5.00] seconds) 12:55:05 testsPCE: FAIL code 1 (171.27=setup[47.16]+cmd[124.12] seconds) 12:55:05 build_karaf_tests221: FAIL code 127 (6.79=setup[6.79]+cmd[0.00] seconds) 12:55:05 tests_tapi: FAIL code 1 (117.58=setup[7.78]+cmd[109.80] seconds) 12:55:05 tests221: FAIL code 1 (114.42=setup[7.29]+cmd[107.13] seconds) 12:55:05 build_karaf_tests71: FAIL code 127 (6.73=setup[6.73]+cmd[0.01] seconds) 12:55:05 tests71: FAIL code 1 (110.89=setup[8.27]+cmd[102.61] seconds) 12:55:05 build_karaf_tests200: FAIL code 127 (6.62=setup[6.62]+cmd[0.00] seconds) 12:55:05 tests200: FAIL code 1 (109.61=setup[7.37]+cmd[102.24] seconds) 12:55:05 tests_hybrid: FAIL code 1 (116.31=setup[6.53]+cmd[109.78] seconds) 12:55:05 buildlighty: FAIL code 9 (6.63=setup[6.62]+cmd[0.01] seconds) 12:55:05 docs: OK (19.19=setup[16.64]+cmd[2.55] seconds) 12:55:05 docs-linkcheck: OK (21.30=setup[16.52]+cmd[4.78] seconds) 12:55:05 checkbashisms: OK (3.06=setup[1.88]+cmd[0.01,0.04,1.14] seconds) 12:55:05 pre-commit: FAIL code 1 (45.92=setup[2.99]+cmd[0.01,0.01,42.92] seconds) 12:55:05 pylint: FAIL code 1 (22.06=setup[3.96]+cmd[18.09] seconds) 12:55:05 evaluation failed :( (552.24 seconds) 12:55:05 + tox_status=1 12:55:05 + echo '---> Completed tox runs' 12:55:05 ---> Completed tox runs 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/build_karaf_tests200/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=build_karaf_tests200 12:55:05 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/build_karaf_tests221/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=build_karaf_tests221 12:55:05 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/build_karaf_tests71/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=build_karaf_tests71 12:55:05 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/buildcontroller/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=buildcontroller 12:55:05 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/buildlighty/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=buildlighty 12:55:05 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/checkbashisms/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=checkbashisms 12:55:05 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/docs-linkcheck/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=docs-linkcheck 12:55:05 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/docs/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=docs 12:55:05 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/pre-commit/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=pre-commit 12:55:05 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/pylint/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=pylint 12:55:05 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/sims/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=sims 12:55:05 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/tests200/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=tests200 12:55:05 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/tests221/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=tests221 12:55:05 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/tests71/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=tests71 12:55:05 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 12:55:05 + for i in .tox/*/log 12:55:05 ++ echo .tox/testsPCE/log 12:55:05 ++ awk -F/ '{print $2}' 12:55:05 + tox_env=testsPCE 12:55:05 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 12:55:06 + for i in .tox/*/log 12:55:06 ++ echo .tox/tests_hybrid/log 12:55:06 ++ awk -F/ '{print $2}' 12:55:06 + tox_env=tests_hybrid 12:55:06 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 12:55:06 + for i in .tox/*/log 12:55:06 ++ echo .tox/tests_tapi/log 12:55:06 ++ awk -F/ '{print $2}' 12:55:06 + tox_env=tests_tapi 12:55:06 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 12:55:06 + DOC_DIR=docs/_build/html 12:55:06 + [[ -d docs/_build/html ]] 12:55:06 + echo '---> Archiving generated docs' 12:55:06 ---> Archiving generated docs 12:55:06 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 12:55:06 + echo '---> tox-run.sh ends' 12:55:06 ---> tox-run.sh ends 12:55:06 + test 1 -eq 0 12:55:06 + exit 1 12:55:06 ++ '[' 1 = 1 ']' 12:55:06 ++ '[' -x /usr/bin/clear_console ']' 12:55:06 ++ /usr/bin/clear_console -q 12:55:06 Build step 'Execute shell' marked build as failure 12:55:06 $ ssh-agent -k 12:55:06 unset SSH_AUTH_SOCK; 12:55:06 unset SSH_AGENT_PID; 12:55:06 echo Agent pid 1570 killed; 12:55:06 [ssh-agent] Stopped. 12:55:06 [PostBuildScript] - [INFO] Executing post build scripts. 12:55:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2654456693141940084.sh 12:55:06 ---> sysstat.sh 12:55:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11613757486031497665.sh 12:55:06 ---> package-listing.sh 12:55:06 + '[' -f /etc/os-release ']' 12:55:06 + . /etc/os-release 12:55:06 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 12:55:06 ++ NAME=Ubuntu 12:55:06 ++ VERSION_ID=22.04 12:55:06 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 12:55:06 ++ VERSION_CODENAME=jammy 12:55:06 ++ ID=ubuntu 12:55:06 ++ ID_LIKE=debian 12:55:06 ++ HOME_URL=https://www.ubuntu.com/ 12:55:06 ++ SUPPORT_URL=https://help.ubuntu.com/ 12:55:06 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 12:55:06 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 12:55:06 ++ UBUNTU_CODENAME=jammy 12:55:06 + case " ${ID:-} ${ID_LIKE:-} " in 12:55:06 + OS_FAMILY=debian 12:55:06 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 12:55:06 + START_PACKAGES=/tmp/packages_start.txt 12:55:06 + END_PACKAGES=/tmp/packages_end.txt 12:55:06 + DIFF_PACKAGES=/tmp/packages_diff.txt 12:55:06 + PACKAGES=/tmp/packages_start.txt 12:55:06 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 12:55:06 + PACKAGES=/tmp/packages_end.txt 12:55:06 + case "${OS_FAMILY}" in 12:55:06 + dpkg -l 12:55:06 + grep '^ii' 12:55:06 + '[' -f /tmp/packages_start.txt ']' 12:55:06 + '[' -f /tmp/packages_end.txt ']' 12:55:06 + diff /tmp/packages_start.txt /tmp/packages_end.txt 12:55:06 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 12:55:06 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 12:55:06 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 12:55:06 + exit 0 12:55:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8938544723923662374.sh 12:55:06 ---> capture-instance-metadata.sh 12:55:06 Setup pyenv: 12:55:06 system 12:55:06 3.8.20 12:55:06 3.9.20 12:55:06 3.10.15 12:55:06 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:55:06 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-R1Zs from file:/tmp/.os_lf_venv 12:55:06 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:55:08 lf-activate-venv(): INFO: Installing additional packages: lftools 12:55:24 lf-activate-venv(): INFO: Adding /tmp/venv-R1Zs/bin to PATH 12:55:24 INFO: Running in OpenStack, capturing instance metadata 12:55:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1510292922483958604.sh 12:55:25 provisioning config files... 12:55:25 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6147 12:55:25 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config7136254450304535131tmp 12:55:25 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 12:55:25 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 12:55:25 provisioning config files... 12:55:25 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 12:55:25 [EnvInject] - Injecting environment variables from a build step. 12:55:25 [EnvInject] - Injecting as environment variables the properties content 12:55:25 SERVER_ID=logs 12:55:25 12:55:25 [EnvInject] - Variables injected successfully. 12:55:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5744359773160200731.sh 12:55:25 ---> create-netrc.sh 12:55:25 WARN: Log server credential not found. 12:55:25 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins104979170636772691.sh 12:55:25 ---> python-tools-install.sh 12:55:25 Setup pyenv: 12:55:25 system 12:55:25 3.8.20 12:55:25 3.9.20 12:55:25 3.10.15 12:55:25 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:55:26 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-R1Zs from file:/tmp/.os_lf_venv 12:55:26 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:55:27 lf-activate-venv(): INFO: Installing additional packages: lftools 12:55:37 lf-activate-venv(): INFO: Adding /tmp/venv-R1Zs/bin to PATH 12:55:37 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins2112696124790208577.sh 12:55:37 ---> uv-install.sh 12:55:37 uv 0.12.23 is already installed 12:55:37 uvx 0.12.23 (x86_64-unknown-linux-gnu) 12:55:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6773527066481616971.sh 12:55:37 ---> sudo-logs.sh 12:55:37 Archiving 'sudo' log.. 12:55:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16722761355876059410.sh 12:55:37 ---> job-cost.sh 12:55:37 INFO: Activating Python virtual environment... 12:55:37 Setup pyenv: 12:55:37 system 12:55:37 3.8.20 12:55:37 3.9.20 12:55:37 3.10.15 12:55:37 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:55:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-R1Zs from file:/tmp/.os_lf_venv 12:55:37 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:55:39 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 12:55:47 lf-activate-venv(): INFO: Adding /tmp/venv-R1Zs/bin to PATH 12:55:47 INFO: No stack-cost file found 12:55:47 INFO: Instance uptime: 725s 12:55:47 INFO: Fetching instance metadata (attempt 1 of 3)... 12:55:47 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 12:55:47 INFO: Successfully fetched instance metadata 12:55:47 INFO: Instance type: v3-standard-4 12:55:47 INFO: Retrieving pricing info for: v3-standard-4 12:55:47 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 12:55:47 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=725 12:55:48 INFO: Successfully fetched Vexxhost pricing API 12:55:48 INFO: Retrieved cost: 0.11 12:55:48 INFO: Retrieved resource: v3-standard-4 12:55:48 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 12:55:48 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 12:55:48 INFO: Successfully archived job cost data 12:55:48 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6147,2026-10-08 12:55:48,v3-standard-4,725,0.11,0.00,FAILURE 12:55:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins4203669299816012927.sh 12:55:48 ---> logs-deploy.sh 12:55:48 Setup pyenv: 12:55:48 system 12:55:48 3.8.20 12:55:48 3.9.20 12:55:48 3.10.15 12:55:48 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 12:55:48 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-R1Zs from file:/tmp/.os_lf_venv 12:55:48 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 12:55:50 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 12:55:59 lf-activate-venv(): INFO: Adding /tmp/venv-R1Zs/bin to PATH 12:55:59 WARNING: Nexus logging server not set 12:55:59 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6147/ 12:55:59 INFO: archiving logs to S3 12:56:00 ---> uname -a: 12:56:00 Linux prd-ubuntu2204-docker-4c-16g-62917 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 12:56:00 12:56:00 12:56:00 ---> lscpu: 12:56:00 Architecture: x86_64 12:56:00 CPU op-mode(s): 32-bit, 64-bit 12:56:00 Address sizes: 40 bits physical, 48 bits virtual 12:56:00 Byte Order: Little Endian 12:56:00 CPU(s): 4 12:56:00 On-line CPU(s) list: 0-3 12:56:00 Vendor ID: AuthenticAMD 12:56:00 Model name: AMD EPYC-Rome Processor 12:56:00 CPU family: 23 12:56:00 Model: 49 12:56:00 Thread(s) per core: 1 12:56:00 Core(s) per socket: 1 12:56:00 Socket(s): 4 12:56:00 Stepping: 0 12:56:00 BogoMIPS: 5600.00 12:56:00 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 12:56:00 Virtualization: AMD-V 12:56:00 Hypervisor vendor: KVM 12:56:00 Virtualization type: full 12:56:00 L1d cache: 128 KiB (4 instances) 12:56:00 L1i cache: 128 KiB (4 instances) 12:56:00 L2 cache: 2 MiB (4 instances) 12:56:00 L3 cache: 64 MiB (4 instances) 12:56:00 NUMA node(s): 1 12:56:00 NUMA node0 CPU(s): 0-3 12:56:00 Vulnerability Gather data sampling: Not affected 12:56:00 Vulnerability Indirect target selection: Not affected 12:56:00 Vulnerability Itlb multihit: Not affected 12:56:00 Vulnerability L1tf: Not affected 12:56:00 Vulnerability Mds: Not affected 12:56:00 Vulnerability Meltdown: Not affected 12:56:00 Vulnerability Mmio stale data: Not affected 12:56:00 Vulnerability Reg file data sampling: Not affected 12:56:00 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 12:56:00 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 12:56:00 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 12:56:00 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 12:56:00 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 12:56:00 Vulnerability Srbds: Not affected 12:56:00 Vulnerability Tsa: Not affected 12:56:00 Vulnerability Tsx async abort: Not affected 12:56:00 Vulnerability Vmscape: Not affected 12:56:00 12:56:00 12:56:00 ---> nproc: 12:56:00 4 12:56:00 12:56:00 12:56:00 ---> df -h: 12:56:00 Filesystem Size Used Avail Use% Mounted on 12:56:00 tmpfs 1.6G 1.1M 1.6G 1% /run 12:56:00 /dev/vda1 78G 11G 67G 14% / 12:56:00 tmpfs 7.9G 0 7.9G 0% /dev/shm 12:56:00 tmpfs 5.0M 0 5.0M 0% /run/lock 12:56:00 /dev/vda15 105M 6.1M 99M 6% /boot/efi 12:56:00 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 12:56:00 12:56:00 12:56:00 ---> free -m: 12:56:00 total used free shared buff/cache available 12:56:00 Mem: 15989 708 9877 4 5403 14937 12:56:00 Swap: 1023 0 1023 12:56:00 12:56:00 12:56:00 ---> ip addr: 12:56:00 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 12:56:00 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 12:56:00 inet 127.0.0.1/8 scope host lo 12:56:00 valid_lft forever preferred_lft forever 12:56:00 inet6 ::1/128 scope host 12:56:00 valid_lft forever preferred_lft forever 12:56:00 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 12:56:00 link/ether fa:16:3e:e2:79:19 brd ff:ff:ff:ff:ff:ff 12:56:00 altname enp0s3 12:56:00 inet 10.30.170.106/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 12:56:00 valid_lft 85670sec preferred_lft 85670sec 12:56:00 inet6 fe80::f816:3eff:fee2:7919/64 scope link 12:56:00 valid_lft forever preferred_lft forever 12:56:00 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 12:56:00 link/ether 9a:69:11:88:ca:f6 brd ff:ff:ff:ff:ff:ff 12:56:00 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 12:56:00 valid_lft forever preferred_lft forever 12:56:00 inet6 fe80::9869:11ff:fe88:caf6/64 scope link 12:56:00 valid_lft forever preferred_lft forever 12:56:00 12:56:00 12:56:00 ---> sar -b -r -n DEV: 12:56:00 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62917) 10/08/26 _x86_64_ (4 CPU) 12:56:00 12:56:00 12:43:53 LINUX RESTART (4 CPU) 12:56:00 12:56:00 12:56:00 ---> sar -P ALL: 12:56:00 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62917) 10/08/26 _x86_64_ (4 CPU) 12:56:00 12:56:00 12:43:53 LINUX RESTART (4 CPU) 12:56:00 12:56:00 12:56:00