13:10:45 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126690 13:10:45 Running as SYSTEM 13:10:45 [EnvInject] - Loading node environment variables. 13:10:45 Building remotely on prd-ubuntu2204-docker-4c-16g-62934 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 13:10:45 [ssh-agent] Looking for ssh-agent implementation... 13:10:46 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:10:46 $ ssh-agent 13:10:46 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXU5xIHU/agent.1568 13:10:46 SSH_AGENT_PID=1570 13:10:46 [ssh-agent] Started. 13:10:46 Running ssh-add (command line suppressed) 13:10:46 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_4150980324378877816.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_4150980324378877816.key) 13:10:46 [ssh-agent] Using credentials jenkins (jenkins-ssh) 13:10:46 The recommended git tool is: NONE 13:10:48 using credential jenkins-ssh 13:10:48 Wiping out workspace first. 13:10:48 Cloning the remote Git repository 13:10:48 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 13:10:48 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 13:10:48 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:10:48 > git --version # timeout=10 13:10:48 > git --version # 'git version 2.34.1' 13:10:48 using GIT_SSH to set credentials jenkins-ssh 13:10:48 Verifying host key using known hosts file, will automatically accept unseen keys 13:10:48 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 13:10:52 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:10:52 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 13:10:53 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:10:53 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:10:53 using GIT_SSH to set credentials jenkins-ssh 13:10:53 Verifying host key using known hosts file, will automatically accept unseen keys 13:10:53 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/90/126690/2 # timeout=10 13:10:53 > git rev-parse 45551ee4c2914c776141139732042504c8904607^{commit} # timeout=10 13:10:53 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 13:10:53 Checking out Revision 45551ee4c2914c776141139732042504c8904607 (refs/changes/90/126690/2) 13:10:53 > git config core.sparsecheckout # timeout=10 13:10:53 > git checkout -f 45551ee4c2914c776141139732042504c8904607 # timeout=10 13:10:53 Commit message: "Fix tapi-sbi Javadoc violations" 13:10:53 > git rev-parse FETCH_HEAD^{commit} # timeout=10 13:10:54 > git rev-list --no-walk c4ed02999faa8cee4071fecc7732f1f6a84d494f # timeout=10 13:10:54 > git remote # timeout=10 13:10:54 > git submodule init # timeout=10 13:10:54 > git submodule sync # timeout=10 13:10:54 > git config --get remote.origin.url # timeout=10 13:10:54 > git submodule init # timeout=10 13:10:54 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 13:10:54 ERROR: No submodules found. 13:10:57 provisioning config files... 13:10:57 copy managed file [npmrc] to file:/home/jenkins/.npmrc 13:10:57 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 13:10:57 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1235335947414894495.sh 13:10:57 ---> python-tools-install.sh 13:10:57 Setup pyenv: 13:10:57 * system (set by /opt/pyenv/version) 13:10:57 * 3.8.20 (set by /opt/pyenv/version) 13:10:57 * 3.9.20 (set by /opt/pyenv/version) 13:10:57 3.10.15 13:10:57 3.11.10 13:11:02 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-OcL6 13:11:02 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 13:11:02 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:11:06 lf-activate-venv(): INFO: Installing additional packages: lftools 13:11:31 lf-activate-venv(): INFO: Adding /tmp/venv-OcL6/bin to PATH 13:11:31 Generating Requirements File 13:11:58 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 13:11:58 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 13:11:59 Python 3.11.10 13:11:59 pip 26.2.1 from /tmp/venv-OcL6/lib/python3.11/site-packages/pip (python 3.11) 13:11:59 aiohappyeyeballs==2.7.1 13:11:59 aiohttp==3.14.4 13:11:59 aiosignal==1.4.0 13:11:59 appdirs==1.4.4 13:11:59 argcomplete==3.7.2 13:11:59 aspy.yaml==1.3.0 13:11:59 attrs==26.1.0 13:11:59 autopage==0.6.0 13:11:59 beautifulsoup4==4.15.0 13:11:59 boto3==1.43.109 13:11:59 botocore==1.43.109 13:11:59 bs4==0.0.2 13:11:59 certifi==2026.7.22 13:11:59 cffi==2.1.1 13:11:59 cfgv==3.5.0 13:11:59 chardet==7.6.0 13:11:59 charset-normalizer==3.5.2 13:11:59 click==8.5.0 13:11:59 cliff==4.16.0 13:11:59 cmd2==4.2.4 13:11:59 cryptography==3.3.2 13:11:59 debtcollector==3.1.0 13:11:59 decorator==5.3.1 13:11:59 defusedxml==0.7.1 13:11:59 Deprecated==1.3.1 13:11:59 distlib==0.4.3 13:11:59 dnspython==2.8.0 13:11:59 docker==7.2.0 13:11:59 dogpile.cache==1.5.0 13:11:59 durationpy==0.11 13:11:59 email-validator==2.3.0 13:11:59 filelock==4.0.12 13:11:59 frozenlist==1.8.0 13:11:59 future==1.0.0 13:11:59 gitdb==4.0.12 13:11:59 GitPython==3.2.0 13:11:59 httplib2==0.30.2 13:11:59 identify==2.6.20 13:11:59 idna==3.20 13:11:59 importlib-resources==1.5.0 13:11:59 iso8601==2.1.0 13:11:59 Jinja2==3.1.6 13:11:59 jmespath==1.1.0 13:11:59 jsonpatch==1.33 13:11:59 jsonpointer==3.2.0 13:11:59 jsonschema==4.26.0 13:11:59 jsonschema-specifications==2025.9.1 13:11:59 keystoneauth1==5.18.0 13:11:59 kubernetes==36.0.3 13:11:59 lftools==0.37.23 13:11:59 lxml==6.1.3 13:11:59 markdown-it-py==4.2.0 13:11:59 MarkupSafe==3.0.4 13:11:59 mdurl==0.1.2 13:11:59 msgpack==1.2.3 13:11:59 multi_key_dict==2.0.3 13:11:59 multidict==6.9.1 13:11:59 munch==4.0.0 13:11:59 netaddr==1.3.0 13:11:59 niet==1.4.2 13:11:59 nodeenv==1.11.0 13:11:59 oauth2client==4.1.3 13:11:59 oauthlib==4.0.0 13:11:59 openstacksdk==4.21.0 13:11:59 os-service-types==1.9.0 13:11:59 osc-lib==4.7.0 13:11:59 oslo.config==10.7.0 13:11:59 oslo.context==6.5.0 13:11:59 oslo.i18n==6.9.0 13:11:59 oslo.log==8.3.2 13:11:59 oslo.serialization==5.11.0 13:11:59 oslo.utils==10.2.0 13:11:59 packaging==26.3 13:11:59 pbr==7.1.3 13:11:59 platformdirs==4.12.4 13:11:59 prettytable==3.18.0 13:11:59 prompt_toolkit==3.0.53 13:11:59 propcache==0.5.4 13:11:59 psutil==7.2.2 13:11:59 pyasn1==0.6.4 13:11:59 pyasn1_modules==0.4.2 13:11:59 pycparser==3.1 13:11:59 pygerrit2==2.0.15 13:11:59 PyGithub==2.10.0 13:11:59 Pygments==2.21.0 13:11:59 PyJWT==2.15.1 13:11:59 PyNaCl==1.6.2 13:11:59 pyparsing==2.4.7 13:11:59 pyperclip==1.11.0 13:11:59 pyrsistent==0.20.0 13:11:59 python-dateutil==2.9.0.post0 13:11:59 python-discovery==1.6.1 13:11:59 python-heatclient==5.3.0 13:11:59 python-jenkins==1.8.3 13:11:59 python-keystoneclient==6.0.0 13:11:59 python-magnumclient==5.0.0 13:11:59 python-manilaclient==6.3.0 13:11:59 python-openstackclient==10.3.0 13:11:59 python-swiftclient==4.11.0 13:11:59 PyYAML==6.0.3 13:11:59 referencing==0.37.0 13:11:59 requests==2.34.2 13:11:59 requests-oauthlib==2.0.0 13:11:59 rfc3986==2.0.0 13:11:59 rich==15.0.0 13:11:59 rich-argparse==1.8.0 13:11:59 rpds-py==2026.9.1 13:11:59 rsa==4.9.1 13:11:59 ruamel.yaml==0.19.1 13:11:59 ruamel.yaml.clib==0.2.15 13:11:59 s3transfer==0.19.2 13:11:59 simplejson==4.2.0 13:11:59 six==1.17.0 13:11:59 smmap==5.0.3 13:11:59 soupsieve==2.10 13:11:59 stevedore==5.9.1 13:11:59 tabulate==0.10.0 13:11:59 toml==0.10.2 13:11:59 tomlkit==0.15.1 13:11:59 tqdm==4.70.1 13:11:59 typing_extensions==4.16.0 13:11:59 urllib3==1.26.20 13:11:59 virtualenv==21.14.5 13:11:59 wcwidth==0.9.2 13:11:59 websocket-client==1.9.2 13:11:59 wrapt==2.5.0 13:11:59 xdg==6.0.0 13:11:59 xmltodict==1.0.4 13:11:59 yarl==1.25.1 13:11:59 yq==4.4.0 13:11:59 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins3592747722617017562.sh 13:11:59 ---> uv-install.sh 13:11:59 Installing uv/uvx (latest) using shell installer 13:11:59 2026-10-08 13:11:59 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-HI8Njw.sh" [1] 13:11:59 downloading uv 0.12.23 x86_64-unknown-linux-gnu 13:12:00 installing to /home/jenkins/.local/bin 13:12:00 uv 13:12:00 uvx 13:12:00 everything's installed! 13:12:00 13:12:00 To add $HOME/.local/bin to your PATH, either restart your shell or run: 13:12:00 13:12:00 source $HOME/.local/bin/env (sh, bash, zsh) 13:12:00 source $HOME/.local/bin/env.fish (fish) 13:12:00 Adding install location to PATH 13:12:00 ---> Validating uv/uvx install 13:12:00 uvx 0.12.23 (x86_64-unknown-linux-gnu) 13:12:00 [EnvInject] - Injecting environment variables from a build step. 13:12:00 [EnvInject] - Injecting as environment variables the properties content 13:12:00 PYTHON=python3 13:12:00 13:12:00 [EnvInject] - Variables injected successfully. 13:12:00 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1862062710119609815.sh 13:12:00 ---> tox-install.sh 13:12:00 + source /home/jenkins/lf-env.sh 13:12:00 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:12:00 ++ mktemp -d /tmp/venv-XXXX 13:12:00 + lf_venv=/tmp/venv-9coi 13:12:00 + local venv_file=/tmp/.os_lf_venv 13:12:00 + local python=python3 13:12:00 + local options 13:12:00 + local set_path=true 13:12:00 + local install_args= 13:12:00 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:12:00 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:12:00 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:12:00 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:12:00 + true 13:12:00 + case $1 in 13:12:00 + venv_file=/tmp/.toxenv 13:12:00 + shift 2 13:12:00 + true 13:12:00 + case $1 in 13:12:00 + shift 13:12:00 + break 13:12:00 + case $python in 13:12:00 + local pkg_list= 13:12:00 + [[ -d /opt/pyenv ]] 13:12:00 + echo 'Setup pyenv:' 13:12:00 Setup pyenv: 13:12:00 + export PYENV_ROOT=/opt/pyenv 13:12:00 + PYENV_ROOT=/opt/pyenv 13:12:00 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:00 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:00 + pyenv versions 13:12:00 system 13:12:00 3.8.20 13:12:00 3.9.20 13:12:00 3.10.15 13:12:00 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:12:00 + command -v pyenv 13:12:00 ++ pyenv init - --no-rehash 13:12:00 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:12:00 for i in ${!paths[@]}; do 13:12:00 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:12:00 fi; done; 13:12:00 echo "${paths[*]}"'\'')" 13:12:00 export PATH="/opt/pyenv/shims:${PATH}" 13:12:00 export PYENV_SHELL=bash 13:12:00 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:12:00 pyenv() { 13:12:00 local command 13:12:00 command="${1:-}" 13:12:00 if [ "$#" -gt 0 ]; then 13:12:00 shift 13:12:00 fi 13:12:00 13:12:00 case "$command" in 13:12:00 rehash|shell) 13:12:00 eval "$(pyenv "sh-$command" "$@")" 13:12:00 ;; 13:12:00 *) 13:12:00 command pyenv "$command" "$@" 13:12:00 ;; 13:12:00 esac 13:12:00 }' 13:12:00 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:12:00 for i in ${!paths[@]}; do 13:12:00 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:12:00 fi; done; 13:12:00 echo "${paths[*]}"' 13:12:00 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:00 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:00 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:00 ++ export PYENV_SHELL=bash 13:12:00 ++ PYENV_SHELL=bash 13:12:00 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:12:00 +++ complete -F _pyenv pyenv 13:12:00 ++ lf-pyver python3 13:12:00 ++ local py_version_xy=python3 13:12:00 ++ local py_version_xyz= 13:12:00 ++ pyenv versions 13:12:00 ++ sed 's/^[ *]* //' 13:12:00 ++ awk '{ print $1 }' 13:12:00 ++ local command 13:12:00 ++ grep -E '^[0-9.]*[0-9]$' 13:12:00 ++ command=versions 13:12:00 ++ '[' 1 -gt 0 ']' 13:12:00 ++ shift 13:12:00 ++ case "$command" in 13:12:00 ++ command pyenv versions 13:12:00 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:12:00 +++ grep '^3' /tmp/.pyenv_versions 13:12:00 +++ sort -V 13:12:00 +++ tail -n 1 13:12:00 ++ py_version_xyz=3.11.10 13:12:00 ++ [[ -z 3.11.10 ]] 13:12:00 ++ echo 3.11.10 13:12:00 ++ return 0 13:12:01 + pyenv local 3.11.10 13:12:01 + local command 13:12:01 + command=local 13:12:01 + '[' 2 -gt 0 ']' 13:12:01 + shift 13:12:01 + case "$command" in 13:12:01 + command pyenv local 3.11.10 13:12:01 + for arg in "$@" 13:12:01 + case $arg in 13:12:01 + pkg_list+='tox ' 13:12:01 + for arg in "$@" 13:12:01 + case $arg in 13:12:01 + pkg_list+='virtualenv ' 13:12:01 + for arg in "$@" 13:12:01 + case $arg in 13:12:01 + pkg_list+='urllib3~=1.26.15 ' 13:12:01 + [[ -f /tmp/.toxenv ]] 13:12:01 + [[ ! -f /tmp/.toxenv ]] 13:12:01 + [[ -n '' ]] 13:12:01 + python3 -m venv /tmp/venv-9coi 13:12:05 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9coi' 13:12:05 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-9coi 13:12:05 + echo /tmp/venv-9coi 13:12:05 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 13:12:05 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 13:12:05 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:12:05 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:12:05 + local 'pip_opts=--upgrade --quiet' 13:12:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:12:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:12:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:12:05 + [[ -n '' ]] 13:12:05 + [[ -n '' ]] 13:12:05 + lf-venv-pip-install /tmp/venv-9coi/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:12:05 + local venv_python=/tmp/venv-9coi/bin/python3 13:12:05 + shift 13:12:05 + local upstream=https://pypi.org/simple 13:12:05 + /tmp/venv-9coi/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:12:09 + return 0 13:12:09 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:12:09 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:12:09 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:12:09 + lf-venv-pip-install /tmp/venv-9coi/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 13:12:09 + local venv_python=/tmp/venv-9coi/bin/python3 13:12:09 + shift 13:12:09 + local upstream=https://pypi.org/simple 13:12:09 + /tmp/venv-9coi/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 13:12:10 + return 0 13:12:10 + type python3 13:12:10 + true 13:12:10 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9coi/bin to PATH' 13:12:10 lf-activate-venv(): INFO: Adding /tmp/venv-9coi/bin to PATH 13:12:10 + PATH=/tmp/venv-9coi/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:10 + return 0 13:12:10 + python3 --version 13:12:10 Python 3.11.10 13:12:10 + python3 -m pip --version 13:12:10 pip 26.2.1 from /tmp/venv-9coi/lib/python3.11/site-packages/pip (python 3.11) 13:12:10 + python3 -m pip freeze 13:12:11 cachetools==7.2.1 13:12:11 colorama==0.4.6 13:12:11 distlib==0.4.3 13:12:11 filelock==4.0.12 13:12:11 packaging==26.3 13:12:11 platformdirs==4.12.4 13:12:11 pluggy==1.6.0 13:12:11 pyproject-api==1.11.4 13:12:11 python-discovery==1.6.1 13:12:11 tomli_w==1.2.0 13:12:11 tox==4.64.9 13:12:11 typing_extensions==4.16.0 13:12:11 urllib3==1.26.20 13:12:11 virtualenv==21.14.5 13:12:11 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins4676759538985259484.sh 13:12:11 [EnvInject] - Injecting environment variables from a build step. 13:12:11 [EnvInject] - Injecting as environment variables the properties content 13:12:11 PARALLEL=True 13:12:11 13:12:11 [EnvInject] - Variables injected successfully. 13:12:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins10694790200327688270.sh 13:12:11 ---> tox-run.sh 13:12:11 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:12:11 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:12:11 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:12:11 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 13:12:11 + source /home/jenkins/lf-env.sh 13:12:11 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:12:11 ++ mktemp -d /tmp/venv-XXXX 13:12:11 + lf_venv=/tmp/venv-V51L 13:12:11 + local venv_file=/tmp/.os_lf_venv 13:12:11 + local python=python3 13:12:11 + local options 13:12:11 + local set_path=true 13:12:11 + local install_args= 13:12:11 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:12:11 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:12:11 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:12:11 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:12:11 + true 13:12:11 + case $1 in 13:12:11 + venv_file=/tmp/.toxenv 13:12:11 + shift 2 13:12:11 + true 13:12:11 + case $1 in 13:12:11 + shift 13:12:11 + break 13:12:11 + case $python in 13:12:11 + local pkg_list= 13:12:11 + [[ -d /opt/pyenv ]] 13:12:11 + echo 'Setup pyenv:' 13:12:11 Setup pyenv: 13:12:11 + export PYENV_ROOT=/opt/pyenv 13:12:11 + PYENV_ROOT=/opt/pyenv 13:12:11 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 + pyenv versions 13:12:11 system 13:12:11 3.8.20 13:12:11 3.9.20 13:12:11 3.10.15 13:12:11 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:12:11 + command -v pyenv 13:12:11 ++ pyenv init - --no-rehash 13:12:11 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:12:11 for i in ${!paths[@]}; do 13:12:11 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:12:11 fi; done; 13:12:11 echo "${paths[*]}"'\'')" 13:12:11 export PATH="/opt/pyenv/shims:${PATH}" 13:12:11 export PYENV_SHELL=bash 13:12:11 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:12:11 pyenv() { 13:12:11 local command 13:12:11 command="${1:-}" 13:12:11 if [ "$#" -gt 0 ]; then 13:12:11 shift 13:12:11 fi 13:12:11 13:12:11 case "$command" in 13:12:11 rehash|shell) 13:12:11 eval "$(pyenv "sh-$command" "$@")" 13:12:11 ;; 13:12:11 *) 13:12:11 command pyenv "$command" "$@" 13:12:11 ;; 13:12:11 esac 13:12:11 }' 13:12:11 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:12:11 for i in ${!paths[@]}; do 13:12:11 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:12:11 fi; done; 13:12:11 echo "${paths[*]}"' 13:12:11 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:11 ++ export PYENV_SHELL=bash 13:12:11 ++ PYENV_SHELL=bash 13:12:11 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:12:11 +++ complete -F _pyenv pyenv 13:12:11 ++ lf-pyver python3 13:12:11 ++ local py_version_xy=python3 13:12:11 ++ local py_version_xyz= 13:12:11 ++ pyenv versions 13:12:11 ++ local command 13:12:11 ++ command=versions 13:12:11 ++ '[' 1 -gt 0 ']' 13:12:11 ++ shift 13:12:11 ++ case "$command" in 13:12:11 ++ sed 's/^[ *]* //' 13:12:11 ++ command pyenv versions 13:12:11 ++ awk '{ print $1 }' 13:12:11 ++ grep -E '^[0-9.]*[0-9]$' 13:12:11 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:12:11 +++ grep '^3' /tmp/.pyenv_versions 13:12:11 +++ sort -V 13:12:11 +++ tail -n 1 13:12:11 ++ py_version_xyz=3.11.10 13:12:11 ++ [[ -z 3.11.10 ]] 13:12:11 ++ echo 3.11.10 13:12:11 ++ return 0 13:12:11 + pyenv local 3.11.10 13:12:11 + local command 13:12:11 + command=local 13:12:11 + '[' 2 -gt 0 ']' 13:12:11 + shift 13:12:11 + case "$command" in 13:12:11 + command pyenv local 3.11.10 13:12:11 + for arg in "$@" 13:12:11 + case $arg in 13:12:11 + pkg_list+='tox ' 13:12:11 + for arg in "$@" 13:12:11 + case $arg in 13:12:11 + pkg_list+='virtualenv ' 13:12:11 + for arg in "$@" 13:12:11 + case $arg in 13:12:11 + pkg_list+='urllib3~=1.26.15 ' 13:12:11 + [[ -f /tmp/.toxenv ]] 13:12:11 ++ cat /tmp/.toxenv 13:12:11 + lf_venv=/tmp/venv-9coi 13:12:11 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9coi from' file:/tmp/.toxenv 13:12:11 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-9coi from file:/tmp/.toxenv 13:12:11 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:12:11 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:12:11 + local 'pip_opts=--upgrade --quiet' 13:12:11 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:12:11 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:12:11 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:12:11 + [[ -n '' ]] 13:12:11 + [[ -n '' ]] 13:12:11 + lf-venv-pip-install /tmp/venv-9coi/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:12:11 + local venv_python=/tmp/venv-9coi/bin/python3 13:12:11 + shift 13:12:11 + local upstream=https://pypi.org/simple 13:12:11 + /tmp/venv-9coi/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:12:12 + return 0 13:12:12 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:12:12 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:12:12 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:12:12 + lf-venv-pip-install /tmp/venv-9coi/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 13:12:12 + local venv_python=/tmp/venv-9coi/bin/python3 13:12:12 + shift 13:12:12 + local upstream=https://pypi.org/simple 13:12:12 + /tmp/venv-9coi/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 13:12:13 + return 0 13:12:13 + type python3 13:12:13 + true 13:12:13 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-9coi/bin to PATH' 13:12:13 lf-activate-venv(): INFO: Adding /tmp/venv-9coi/bin to PATH 13:12:13 + PATH=/tmp/venv-9coi/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:13 + return 0 13:12:13 + [[ -d /opt/pyenv ]] 13:12:13 + echo '---> Setting up pyenv' 13:12:13 ---> Setting up pyenv 13:12:13 + export PYENV_ROOT=/opt/pyenv 13:12:13 + PYENV_ROOT=/opt/pyenv 13:12:13 + export PATH=/opt/pyenv/bin:/tmp/venv-9coi/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:13 + PATH=/opt/pyenv/bin:/tmp/venv-9coi/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 13:12:13 ++ pwd 13:12:13 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 13:12:13 + export PYTHONPATH 13:12:13 + export TOX_TESTENV_PASSENV=PYTHONPATH 13:12:13 + TOX_TESTENV_PASSENV=PYTHONPATH 13:12:13 + tox --version 13:12:14 4.64.9 from /tmp/venv-9coi/lib/python3.11/site-packages/tox/__init__.py 13:12:14 + PARALLEL=True 13:12:14 + TOX_OPTIONS_LIST= 13:12:14 + [[ -n '' ]] 13:12:14 + case ${PARALLEL,,} in 13:12:14 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 13:12:14 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 13:12:14 + tox --parallel auto --parallel-live 13:12:15 checkbashisms: freeze> python -m pip freeze --all 13:12:15 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:12:15 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 13:12:15 docs: install_deps> python -I -m pip install -r docs/requirements.txt 13:12:16 checkbashisms: pip==26.2.1,setuptools==84.0.0 13:12:16 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:12:16 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 13:12:16 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 13:12:17 checkbashisms: OK ✔ in 3.13 seconds 13:12:17 pre-commit: install_deps> python -I -m pip install pre-commit 13:12:20 pre-commit: freeze> python -m pip freeze --all 13:12:20 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 13:12:20 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:12:20 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 13:12:20 /usr/bin/cpan 13:12:20 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 13:12:20 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 13:12:20 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 13:12:21 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 13:12:22 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:12:22 buildcontroller: freeze> python -m pip freeze --all 13:12:22 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 13:12:22 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 13:12:22 + update-java-alternatives -l 13:12:22 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 13:12:22 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 13:12:22 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 13:12:22 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 13:12:22 update-alternatives: error: no alternatives for jaotc 13:12:22 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 13:12:22 update-alternatives: error: no alternatives for rmic 13:12:22 + java -version 13:12:22 + sed -n s/.* version "\([0-9]*\).*/\1/p 13:12:22 + JAVA_VER=21 13:12:22 + echo 21 13:12:22 21 13:12:22 + javac -version 13:12:22 + sed -n s/^javac \([0-9]*\).*/\1/p 13:12:22 + JAVAC_VER=21 13:12:22 + echo 21 13:12:22 + [ 21 -ge 21 ] 13:12:22 21 13:12:22 ok, java is 21 or newer 13:12:22 + [ 21 -ge 21 ] 13:12:22 + echo ok, java is 21 or newer 13:12:22 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 13:12:22 2026-10-08 13:12:22 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 13:12:22 + sudo mkdir -p /opt 13:12:22 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 13:12:23 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 13:12:23 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 13:12:23 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 13:12:23 + mvn --version 13:12:23 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 13:12:23 Maven home: /opt/maven 13:12:23 Java version: 21.0.12.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 13:12:23 Default locale: en, platform encoding: UTF-8 13:12:23 OS name: "linux", version: "5.15.0-198-generic", arch: "amd64", family: "unix" 13:12:23 NOTE: Picked up JDK_JAVA_OPTIONS: 13:12:23 --add-opens=java.base/java.io=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.lang=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.net=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.nio=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.nio.file=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.util=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.util.jar=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.util.stream=ALL-UNNAMED 13:12:23 --add-opens=java.base/java.util.zip=ALL-UNNAMED 13:12:23 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 13:12:23 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 13:12:23 -Xlog:disable 13:12:24 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 13:12:24 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 13:12:24 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 13:12:25 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 13:12:26 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 13:12:26 [INFO] Once installed this environment will be reused. 13:12:26 [INFO] This may take a few minutes... 13:12:28 docs-linkcheck: freeze> python -m pip freeze --all 13:12:29 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 13:12:29 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 13:12:29 docs: freeze> python -m pip freeze --all 13:12:29 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 13:12:29 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 13:12:32 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:12:32 [INFO] Once installed this environment will be reused. 13:12:32 [INFO] This may take a few minutes... 13:12:33 docs: OK ✔ in 18.64 seconds 13:12:33 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 13:12:36 docs-linkcheck: OK ✔ in 20.13 seconds 13:12:36 pylint: freeze> python -m pip freeze --all 13:12:36 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 13:12:36 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 13:12:38 [INFO] Installing environment for https://github.com/hhatto/autopep8. 13:12:38 [INFO] Once installed this environment will be reused. 13:12:38 [INFO] This may take a few minutes... 13:12:42 [INFO] Installing environment for https://github.com/perltidy/perltidy. 13:12:42 [INFO] Once installed this environment will be reused. 13:12:42 [INFO] This may take a few minutes... 13:12:52 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 13:12:52 [INFO] Once installed this environment will be reused. 13:12:52 [INFO] This may take a few minutes... 13:12:56 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 13:12:56 [INFO] Once installed this environment will be reused. 13:12:56 [INFO] This may take a few minutes... 13:12:56 ************* Module 2.2.1.test12_end2end 13:12:56 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 ************* Module common.test_utils 13:12:56 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:12:56 13:12:56 ----------------------------------- 13:12:56 Your code has been rated at 9.99/10 13:12:56 13:12:58 pylint: exit 1 (22.02 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=3450 13:13:01 trim trailing whitespace.................................................Passed 13:13:01 fix end of files.........................................................Passed 13:13:01 check for added large files..............................................Passed 13:13:01 check for merge conflicts................................................Passed 13:13:02 check for case conflicts.................................................Passed 13:13:02 check json...............................................................Passed 13:13:02 mixed line ending........................................................Passed 13:13:02 Tabs remover.............................................................Passed 13:13:02 autopep8.................................................................Passed 13:13:05 perltidy.................................................................Passed 13:13:06 ShellCheck v0.11.0.......................................................Passed 13:13:10 prettier.................................................................Passed 13:13:12 yamllint.................................................................Passed 13:13:12 pylint: FAIL ✖ in 25.37 seconds 13:13:12 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 13:13:12 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 13:13:12 [INFO] Once installed this environment will be reused. 13:13:12 [INFO] This may take a few minutes... 13:13:13 [ERROR] COMPILATION ERROR : 13:13:13 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/TpceNetwork.java:[78,29] wrong number of type arguments; required 1 13:13:13 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/TpceNetwork.java:[88,29] wrong number of type arguments; required 1 13:13:13 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:compile (default-compile) on project transportpce-networkmodel: Compilation failure: Compilation failure: 13:13:13 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/TpceNetwork.java:[78,29] wrong number of type arguments; required 1 13:13:13 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/TpceNetwork.java:[88,29] wrong number of type arguments; required 1 13:13:13 [ERROR] -> [Help 1] 13:13:13 [ERROR] 13:13:13 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 13:13:13 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 13:13:13 [ERROR] 13:13:13 [ERROR] For more information about the errors and possible solutions, please read the following articles: 13:13:13 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 13:13:13 [ERROR] 13:13:13 [ERROR] After correcting the problems, you can resume the build with the command 13:13:13 [ERROR] mvn -rf :transportpce-networkmodel 13:13:13 buildcontroller: exit 1 (51.16 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2742 13:13:13 buildcontroller: FAIL ✖ in 58.99 seconds 13:13:13 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:13 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:14 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:20 gitlint..................................................................Passed 13:13:20 pre-commit: OK ✔ in 1 minute 2.8 seconds 13:13:20 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:21 build_karaf_tests221: freeze> python -m pip freeze --all 13:13:22 build_karaf_tests71: freeze> python -m pip freeze --all 13:13:22 build_karaf_tests200: freeze> python -m pip freeze --all 13:13:22 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 13:13:22 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:13:22 build karaf in karaf221 with ./karaf221.env 13:13:22 NOTE: Picked up JDK_JAVA_OPTIONS: 13:13:22 --add-opens=java.base/java.io=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.net=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.file=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.jar=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.stream=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.zip=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 13:13:22 -Xlog:disable 13:13:22 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 13:13:22 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:13:22 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 13:13:22 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:13:22 build karaf in karaf71 with ./karaf71.env 13:13:22 build karaf in karafoc200 with ./karafoc200.env 13:13:22 NOTE: Picked up JDK_JAVA_OPTIONS: 13:13:22 --add-opens=java.base/java.io=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.net=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.file=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.jar=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.stream=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.zip=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 13:13:22 -Xlog:disable 13:13:22 NOTE: Picked up JDK_JAVA_OPTIONS: 13:13:22 --add-opens=java.base/java.io=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.net=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.nio.file=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.jar=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.stream=ALL-UNNAMED 13:13:22 --add-opens=java.base/java.util.zip=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 13:13:22 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 13:13:22 -Xlog:disable 13:13:31 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] -> [Help 1] 13:13:31 [ERROR] 13:13:31 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 13:13:31 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 13:13:31 [ERROR] 13:13:31 [ERROR] For more information about the errors and possible solutions, please read the following articles: 13:13:31 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 13:13:31 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:31 [ERROR] -> [Help 1] 13:13:31 [ERROR] 13:13:31 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 13:13:31 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 13:13:31 [ERROR] 13:13:31 [ERROR] For more information about the errors and possible solutions, please read the following articles: 13:13:31 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 13:13:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:13:31 build_karaf_tests221: exit 127 (8.94 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4316 13:13:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:13:31 build_karaf_tests221: FAIL ✖ in 17.72 seconds 13:13:31 build_karaf_tests200: exit 127 (8.87 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4380 13:13:31 build_karaf_tests200: FAIL ✖ in 17.78 seconds 13:13:31 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:31 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce-tapisbi:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT (runtime) 13:13:31 [ERROR] org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:14.0.0-SNAPSHOT was not found in https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of opendaylight-snapshot has elapsed or updates are forced 13:13:31 [ERROR] -> [Help 1] 13:13:31 [ERROR] 13:13:31 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 13:13:31 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 13:13:31 [ERROR] 13:13:31 [ERROR] For more information about the errors and possible solutions, please read the following articles: 13:13:31 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 13:13:31 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:13:31 build_karaf_tests71: exit 127 (9.03 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4381 13:13:31 build_karaf_tests71: FAIL ✖ in 17.94 seconds 13:13:31 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:13:31 buildlighty: freeze> python -m pip freeze --all 13:13:32 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 13:13:32 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 13:13:32 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 13:13:37 sims: freeze> python -m pip freeze --all 13:13:38 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 13:13:38 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 13:13:38 Using lighynode version 22.1.0.7 13:13:38 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 13:13:41 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:14.0.0-SNAPSHOT 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-networkmodel:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-pce:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-olm:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-servicehandler:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-tapi:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:14.0.0-SNAPSHOT (compile) 13:13:41 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 13:13:41 [ERROR] -> [Help 1] 13:13:41 [ERROR] 13:13:41 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 13:13:41 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 13:13:41 [ERROR] 13:13:41 [ERROR] For more information about the errors and possible solutions, please read the following articles: 13:13:41 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 13:13:41 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 13:13:41 buildlighty: exit 9 (9.30 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=4573 13:14:25 buildlighty: FAIL ✖ in 20.93 seconds 13:14:25 sims: OK ✔ in 10.27 seconds 13:14:25 testsPCE: freeze> python -m pip freeze --all 13:14:25 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 13:14:25 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 13:14:25 pytest -q transportpce_tests/pce/test01_pce.py 13:16:26 EEEEEEEEEEEEEEEEEEEE [100%] 13:16:29 ==================================== ERRORS ==================================== 13:16:29 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 13:16:29 13:16:29 cls = 13:16:29 13:16:29 @classmethod 13:16:29 def setUpClass(cls): 13:16:29 # pylint: disable=bare-except 13:16:29 sample_files_parsed = False 13:16:29 time.sleep(20) 13:16:29 try: 13:16:29 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:16:29 "..", "..", "sample_configs", "honeynode-topo.json") 13:16:29 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 13:16:29 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 13:16:29 13:16:29 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:16:29 "..", "..", "sample_configs", "NW-simple-topology.json") 13:16:29 13:16:29 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 13:16:29 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 13:16:29 13:16:29 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:16:29 "..", "..", "sample_configs", "NW-for-test-5-4.json") 13:16:29 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 13:16:29 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 13:16:29 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 13:16:29 "..", "..", "sample_configs", "pce_portmapping_221.json") 13:16:29 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 13:16:29 cls.port_mapping_data = port_mapping.read() 13:16:29 sample_files_parsed = True 13:16:29 except PermissionError as err: 13:16:29 print("Permission Error when trying to read sample files\n", err) 13:16:29 sys.exit(2) 13:16:29 except FileNotFoundError as err: 13:16:29 print("File Not found Error when trying to read sample files\n", err) 13:16:29 sys.exit(2) 13:16:29 except: 13:16:29 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 13:16:29 sys.exit(2) 13:16:29 finally: 13:16:29 if sample_files_parsed: 13:16:29 print("sample files content loaded") 13:16:29 13:16:29 > cls.processes = test_utils.start_tpce() 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 13:16:29 transportpce_tests/pce/test01_pce.py:93: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 def start_tpce(): 13:16:29 if 'NO_ODL_STARTUP' in os.environ: 13:16:29 print('No OpenDaylight instance to start!') 13:16:29 return [] 13:16:29 print('starting OpenDaylight...') 13:16:29 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:16:29 process = start_lighty() 13:16:29 else: 13:16:29 process = start_karaf() 13:16:29 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:16:29 print('OpenDaylight started !') 13:16:29 else: 13:16:29 print('OpenDaylight failed to start !') 13:16:29 shutdown_process(process) 13:16:29 for pid in process_list: 13:16:29 shutdown_process(pid) 13:16:29 > sys.exit(1) 13:16:29 E SystemExit: 1 13:16:29 13:16:29 transportpce_tests/common/test_utils.py:234: SystemExit 13:16:29 ---------------------------- Captured stdout setup ----------------------------- 13:16:29 sample files content loaded 13:16:29 starting OpenDaylight... 13:16:29 starting KARAF (karaf) TransportPCE build... 13:16:29 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:16:29 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158b380> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159fc40> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159f420> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158b380> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159f1a0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159f6a0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f4980fc9da0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158bec0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158b380> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158bec0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f4980fc9940> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159f1a0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158b380> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f4980fca980> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159c540> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498158b380> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f4980fca2a0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159f1a0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 13:16:29 13:16:29 cls = 13:16:29 func = . at 0x7f498159c2c0> 13:16:29 when = 'setup' 13:16:29 reraise = (, ) 13:16:29 13:16:29 @classmethod 13:16:29 def from_call( 13:16:29 cls, 13:16:29 func: Callable[[], TResult], 13:16:29 when: Literal["collect", "setup", "call", "teardown"], 13:16:29 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:16:29 ) -> CallInfo[TResult]: 13:16:29 """Call func, wrapping the result in a CallInfo. 13:16:29 13:16:29 :param func: 13:16:29 The function to call. Called without arguments. 13:16:29 :type func: Callable[[], _pytest.runner.TResult] 13:16:29 :param when: 13:16:29 The phase in which the function is called. 13:16:29 :param reraise: 13:16:29 Exception or exceptions that shall propagate if raised by the 13:16:29 function, instead of being wrapped in the CallInfo. 13:16:29 """ 13:16:29 excinfo = None 13:16:29 instant = timing.Instant() 13:16:29 try: 13:16:29 > result: TResult | None = func() 13:16:29 ^^^^^^ 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:16:29 lambda: runtest_hook(item=item, **kwds), 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:16:29 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:16:29 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:16:29 yield 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:16:29 return (yield) 13:16:29 ^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:16:29 item.session._setupstate.setup(item) 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:16:29 col.setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:16:29 super().setup() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:16:29 self._request._fillfixtures() 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:16:29 item.funcargs[argname] = self.getfixturevalue(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:16:29 fixturedef = self._get_active_fixturedef(argname) 13:16:29 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:16:29 fixturedef.execute(request=subrequest) 13:16:29 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:16:29 13:16:29 self = 13:16:29 request = > 13:16:29 13:16:29 def execute(self, request: SubRequest) -> FixtureValue: 13:16:29 """Return the value of this fixture, executing it if not cached.""" 13:16:29 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:16:29 # This needs to be done before checking if we have a cached value, since 13:16:29 # if a dependent fixture has their cache invalidated, e.g. due to 13:16:29 # parametrization, they finalize themselves and fixtures depending on it 13:16:29 # (which will likely include this fixture) setting `self.cached_result = None`. 13:16:29 # See #4871 13:16:29 requested_fixtures_that_should_finalize_us = [] 13:16:29 for argname in self.argnames: 13:16:29 fixturedef = request._get_active_fixturedef(argname) 13:16:29 # Saves requested fixtures in a list so we later can add our finalizer 13:16:29 # to them, ensuring that if a requested fixture gets torn down we get torn 13:16:29 # down first. This is generally handled by SetupState, but still currently 13:16:29 # needed when this fixture is not parametrized but depends on a parametrized 13:16:29 # fixture. 13:16:29 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:16:29 13:16:29 # Check for (and return) cached value/exception. 13:16:29 if self.cached_result is not None: 13:16:29 request_cache_key = self.cache_key(request) 13:16:29 cache_key = self.cached_result[1] 13:16:29 try: 13:16:29 # Attempt to make a normal == check: this might fail for objects 13:16:29 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:16:29 cache_hit = bool(request_cache_key == cache_key) 13:16:29 except (ValueError, RuntimeError): 13:16:29 # If the comparison raises, use 'is' as fallback. 13:16:29 cache_hit = request_cache_key is cache_key 13:16:29 13:16:29 if cache_hit: 13:16:29 if self.cached_result[2] is not None: 13:16:29 exc, exc_tb = self.cached_result[2] 13:16:29 raise exc.with_traceback(exc_tb) 13:16:29 else: 13:16:29 return self.cached_result[0] 13:16:29 # We have a previous but differently parametrized fixture instance 13:16:29 # so we need to tear it down before creating a new one. 13:16:29 self.finish(request) 13:16:29 assert self.cached_result is None 13:16:29 13:16:29 # Add finalizer to requested fixtures we saved previously. 13:16:29 # We make sure to do this after checking for cached value to avoid 13:16:29 # adding our finalizer multiple times. (#12135) 13:16:29 finalizer = functools.partial(self.finish, request=request) 13:16:29 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:16:29 parent_fixture.addfinalizer(finalizer) 13:16:29 13:16:29 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:16:29 # which is executed last. 13:16:29 > assert not self._finalizers 13:16:29 ^^^^^^^^^^^^^^^^^^^^ 13:16:29 E AssertionError 13:16:29 13:16:29 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:16:29 =========================== short test summary info ============================ 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 13:16:29 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 13:16:29 20 errors in 123.92s (0:02:03) 13:16:29 testsPCE: exit 1 (124.30 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4706 13:16:30 testsPCE: FAIL ✖ in 2 minutes 58.5 seconds 13:16:30 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 13:16:36 tests_tapi: freeze> python -m pip freeze --all 13:16:36 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 13:16:36 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 13:16:36 using environment variables from ./karaf221.env 13:16:36 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 13:18:17 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:18:26 ==================================== ERRORS ==================================== 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 13:18:26 @classmethod 13:18:26 def setUpClass(cls): 13:18:26 cls.init_failed = False 13:18:26 os.environ['JAVA_MIN_MEM'] = '1024M' 13:18:26 os.environ['JAVA_MAX_MEM'] = '4096M' 13:18:26 > cls.processes = test_utils.start_tpce() 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 13:18:26 transportpce_tests/tapi/test01_abstracted_topology.py:148: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 def start_tpce(): 13:18:26 if 'NO_ODL_STARTUP' in os.environ: 13:18:26 print('No OpenDaylight instance to start!') 13:18:26 return [] 13:18:26 print('starting OpenDaylight...') 13:18:26 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:18:26 process = start_lighty() 13:18:26 else: 13:18:26 process = start_karaf() 13:18:26 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:18:26 print('OpenDaylight started !') 13:18:26 else: 13:18:26 print('OpenDaylight failed to start !') 13:18:26 shutdown_process(process) 13:18:26 for pid in process_list: 13:18:26 shutdown_process(pid) 13:18:26 > sys.exit(1) 13:18:26 E SystemExit: 1 13:18:26 13:18:26 transportpce_tests/common/test_utils.py:234: SystemExit 13:18:26 ---------------------------- Captured stdout setup ----------------------------- 13:18:26 starting OpenDaylight... 13:18:26 starting KARAF (karaf221) TransportPCE build... 13:18:26 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a43740> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a97c40> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71b3a7060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a97100> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a41b20> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a976a0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a422a0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e020> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a41a80> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e5c0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a42480> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a97100> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a42480> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71c14b060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967dbc0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967dbc0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967cd60> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967c7c0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967eac0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967d300> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967eac0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967da80> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967efc0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967de40> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e020> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e340> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e340> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967f240> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967f420> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967f560> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967e3e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967da80> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd719a428e0> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 13:18:26 13:18:26 cls = 13:18:26 func = . at 0x7fd71967f060> 13:18:26 when = 'setup' 13:18:26 reraise = (, ) 13:18:26 13:18:26 @classmethod 13:18:26 def from_call( 13:18:26 cls, 13:18:26 func: Callable[[], TResult], 13:18:26 when: Literal["collect", "setup", "call", "teardown"], 13:18:26 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:18:26 ) -> CallInfo[TResult]: 13:18:26 """Call func, wrapping the result in a CallInfo. 13:18:26 13:18:26 :param func: 13:18:26 The function to call. Called without arguments. 13:18:26 :type func: Callable[[], _pytest.runner.TResult] 13:18:26 :param when: 13:18:26 The phase in which the function is called. 13:18:26 :param reraise: 13:18:26 Exception or exceptions that shall propagate if raised by the 13:18:26 function, instead of being wrapped in the CallInfo. 13:18:26 """ 13:18:26 excinfo = None 13:18:26 instant = timing.Instant() 13:18:26 try: 13:18:26 > result: TResult | None = func() 13:18:26 ^^^^^^ 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:18:26 lambda: runtest_hook(item=item, **kwds), 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:18:26 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:18:26 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:18:26 yield 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:18:26 return (yield) 13:18:26 ^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:18:26 item.session._setupstate.setup(item) 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:18:26 col.setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:18:26 super().setup() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:18:26 self._request._fillfixtures() 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:18:26 item.funcargs[argname] = self.getfixturevalue(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:18:26 fixturedef = self._get_active_fixturedef(argname) 13:18:26 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:18:26 fixturedef.execute(request=subrequest) 13:18:26 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:18:26 13:18:26 self = 13:18:26 request = > 13:18:26 13:18:26 def execute(self, request: SubRequest) -> FixtureValue: 13:18:26 """Return the value of this fixture, executing it if not cached.""" 13:18:26 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:18:26 # This needs to be done before checking if we have a cached value, since 13:18:26 # if a dependent fixture has their cache invalidated, e.g. due to 13:18:26 # parametrization, they finalize themselves and fixtures depending on it 13:18:26 # (which will likely include this fixture) setting `self.cached_result = None`. 13:18:26 # See #4871 13:18:26 requested_fixtures_that_should_finalize_us = [] 13:18:26 for argname in self.argnames: 13:18:26 fixturedef = request._get_active_fixturedef(argname) 13:18:26 # Saves requested fixtures in a list so we later can add our finalizer 13:18:26 # to them, ensuring that if a requested fixture gets torn down we get torn 13:18:26 # down first. This is generally handled by SetupState, but still currently 13:18:26 # needed when this fixture is not parametrized but depends on a parametrized 13:18:26 # fixture. 13:18:26 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:18:26 13:18:26 # Check for (and return) cached value/exception. 13:18:26 if self.cached_result is not None: 13:18:26 request_cache_key = self.cache_key(request) 13:18:26 cache_key = self.cached_result[1] 13:18:26 try: 13:18:26 # Attempt to make a normal == check: this might fail for objects 13:18:26 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:18:26 cache_hit = bool(request_cache_key == cache_key) 13:18:26 except (ValueError, RuntimeError): 13:18:26 # If the comparison raises, use 'is' as fallback. 13:18:26 cache_hit = request_cache_key is cache_key 13:18:26 13:18:26 if cache_hit: 13:18:26 if self.cached_result[2] is not None: 13:18:26 exc, exc_tb = self.cached_result[2] 13:18:26 raise exc.with_traceback(exc_tb) 13:18:26 else: 13:18:26 return self.cached_result[0] 13:18:26 # We have a previous but differently parametrized fixture instance 13:18:26 # so we need to tear it down before creating a new one. 13:18:26 self.finish(request) 13:18:26 assert self.cached_result is None 13:18:26 13:18:26 # Add finalizer to requested fixtures we saved previously. 13:18:26 # We make sure to do this after checking for cached value to avoid 13:18:26 # adding our finalizer multiple times. (#12135) 13:18:26 finalizer = functools.partial(self.finish, request=request) 13:18:26 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:18:26 parent_fixture.addfinalizer(finalizer) 13:18:26 13:18:26 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:18:26 # which is executed last. 13:18:26 > assert not self._finalizers 13:18:26 ^^^^^^^^^^^^^^^^^^^^ 13:18:26 E AssertionError 13:18:26 13:18:26 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:18:26 =========================== short test summary info ============================ 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 13:18:26 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 13:18:26 51 errors in 109.59s (0:01:49) 13:18:26 tests_tapi: exit 1 (109.89 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4873 13:18:26 tests_tapi: FAIL ✖ in 1 minute 56.69 seconds 13:18:26 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:18:26 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:18:34 tests200: freeze> python -m pip freeze --all 13:18:34 tests221: freeze> python -m pip freeze --all 13:18:35 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.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 13:18:35 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 13:18:35 using environment variables from ./karafoc200.env 13:18:35 pytest -q transportpce_tests/oc200/test01_portmapping.py 13:18:35 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.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 13:18:35 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 13:18:35 using environment variables from ./karaf221.env 13:18:35 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 13:20:15 EEEEEEEEEEEEEEEEEEE [100%] 13:20:17 ==================================== ERRORS ==================================== 13:20:17 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 13:20:17 13:20:17 cls = 13:20:17 13:20:17 @classmethod 13:20:17 def setUpClass(cls): 13:20:17 > cls.processes = test_utils.start_tpce() 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 13:20:17 transportpce_tests/oc200/test01_portmapping.py:29: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 def start_tpce(): 13:20:17 if 'NO_ODL_STARTUP' in os.environ: 13:20:17 print('No OpenDaylight instance to start!') 13:20:17 return [] 13:20:17 print('starting OpenDaylight...') 13:20:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:20:17 process = start_lighty() 13:20:17 else: 13:20:17 process = start_karaf() 13:20:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:20:17 print('OpenDaylight started !') 13:20:17 else: 13:20:17 print('OpenDaylight failed to start !') 13:20:17 shutdown_process(process) 13:20:17 for pid in process_list: 13:20:17 shutdown_process(pid) 13:20:17 > sys.exit(1) 13:20:17 E SystemExit: 1 13:20:17 13:20:17 transportpce_tests/common/test_utils.py:234: SystemExit 13:20:17 ---------------------------- Captured stdout setup ----------------------------- 13:20:17 starting OpenDaylight... 13:20:17 starting KARAF (karafoc200) TransportPCE build... 13:20:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df52b7420> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df2bc3ec0> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df436b600> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df2b9f740> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df52b7420> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df436b600> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df2bc3880> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df2bc36a0> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 13:20:17 13:20:17 cls = 13:20:17 func = . at 0x7f7df2bc3600> 13:20:17 when = 'setup' 13:20:17 reraise = (, ) 13:20:17 13:20:17 @classmethod 13:20:17 def from_call( 13:20:17 cls, 13:20:17 func: Callable[[], TResult], 13:20:17 when: Literal["collect", "setup", "call", "teardown"], 13:20:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:17 ) -> CallInfo[TResult]: 13:20:17 """Call func, wrapping the result in a CallInfo. 13:20:17 13:20:17 :param func: 13:20:17 The function to call. Called without arguments. 13:20:17 :type func: Callable[[], _pytest.runner.TResult] 13:20:17 :param when: 13:20:17 The phase in which the function is called. 13:20:17 :param reraise: 13:20:17 Exception or exceptions that shall propagate if raised by the 13:20:17 function, instead of being wrapped in the CallInfo. 13:20:17 """ 13:20:17 excinfo = None 13:20:17 instant = timing.Instant() 13:20:17 try: 13:20:17 > result: TResult | None = func() 13:20:17 ^^^^^^ 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:17 lambda: runtest_hook(item=item, **kwds), 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:17 yield 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:17 return (yield) 13:20:17 ^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:17 item.session._setupstate.setup(item) 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:17 col.setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:17 super().setup() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:17 self._request._fillfixtures() 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:17 fixturedef = self._get_active_fixturedef(argname) 13:20:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:17 fixturedef.execute(request=subrequest) 13:20:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:17 13:20:17 self = 13:20:17 request = > 13:20:17 13:20:17 def execute(self, request: SubRequest) -> FixtureValue: 13:20:17 """Return the value of this fixture, executing it if not cached.""" 13:20:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:17 # This needs to be done before checking if we have a cached value, since 13:20:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:17 # parametrization, they finalize themselves and fixtures depending on it 13:20:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:17 # See #4871 13:20:17 requested_fixtures_that_should_finalize_us = [] 13:20:17 for argname in self.argnames: 13:20:17 fixturedef = request._get_active_fixturedef(argname) 13:20:17 # Saves requested fixtures in a list so we later can add our finalizer 13:20:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:17 # down first. This is generally handled by SetupState, but still currently 13:20:17 # needed when this fixture is not parametrized but depends on a parametrized 13:20:17 # fixture. 13:20:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:17 13:20:17 # Check for (and return) cached value/exception. 13:20:17 if self.cached_result is not None: 13:20:17 request_cache_key = self.cache_key(request) 13:20:17 cache_key = self.cached_result[1] 13:20:17 try: 13:20:17 # Attempt to make a normal == check: this might fail for objects 13:20:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:17 cache_hit = bool(request_cache_key == cache_key) 13:20:17 except (ValueError, RuntimeError): 13:20:17 # If the comparison raises, use 'is' as fallback. 13:20:17 cache_hit = request_cache_key is cache_key 13:20:17 13:20:17 if cache_hit: 13:20:17 if self.cached_result[2] is not None: 13:20:17 exc, exc_tb = self.cached_result[2] 13:20:17 raise exc.with_traceback(exc_tb) 13:20:17 else: 13:20:17 return self.cached_result[0] 13:20:17 # We have a previous but differently parametrized fixture instance 13:20:17 # so we need to tear it down before creating a new one. 13:20:17 self.finish(request) 13:20:17 assert self.cached_result is None 13:20:17 13:20:17 # Add finalizer to requested fixtures we saved previously. 13:20:17 # We make sure to do this after checking for cached value to avoid 13:20:17 # adding our finalizer multiple times. (#12135) 13:20:17 finalizer = functools.partial(self.finish, request=request) 13:20:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:17 parent_fixture.addfinalizer(finalizer) 13:20:17 13:20:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:17 # which is executed last. 13:20:17 > assert not self._finalizers 13:20:17 ^^^^^^^^^^^^^^^^^^^^ 13:20:17 E AssertionError 13:20:17 13:20:17 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:17 =========================== short test summary info ============================ 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 13:20:17 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 13:20:17 10 errors in 101.97s (0:01:41) 13:20:17 tests200: exit 1 (102.22 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5017 13:20:17 Etests200: FAIL ✖ in 1 minute 50.66 seconds 13:20:17 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:20:17 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:20:21 ==================================== ERRORS ==================================== 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 13:20:21 13:20:21 cls = 13:20:21 13:20:21 @classmethod 13:20:21 def setUpClass(cls): 13:20:21 > cls.processes = test_utils.start_tpce() 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 13:20:21 transportpce_tests/2.2.1/test01_portmapping.py:33: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 def start_tpce(): 13:20:21 if 'NO_ODL_STARTUP' in os.environ: 13:20:21 print('No OpenDaylight instance to start!') 13:20:21 return [] 13:20:21 print('starting OpenDaylight...') 13:20:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:20:21 process = start_lighty() 13:20:21 else: 13:20:21 process = start_karaf() 13:20:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:20:21 print('OpenDaylight started !') 13:20:21 else: 13:20:21 print('OpenDaylight failed to start !') 13:20:21 shutdown_process(process) 13:20:21 for pid in process_list: 13:20:21 shutdown_process(pid) 13:20:21 > sys.exit(1) 13:20:21 E SystemExit: 1 13:20:21 13:20:21 transportpce_tests/common/test_utils.py:234: SystemExit 13:20:21 ---------------------------- Captured stdout setup ----------------------------- 13:20:21 starting OpenDaylight... 13:20:21 starting KARAF (karaf221) TransportPCE build... 13:20:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:20:21 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2f100> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2f2e0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b7233240> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2f100> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2d120> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6ed40> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2d120> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6ff60> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2d120> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6e520> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6fd80> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2d120> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2e0c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2df80> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b2df80> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b6443060> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4bd44a0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4bd5800> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4bd4540> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4bd56c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 13:20:21 13:20:21 cls = 13:20:21 func = . at 0x7f31b4b6f9c0> 13:20:21 when = 'setup' 13:20:21 reraise = (, ) 13:20:21 13:20:21 @classmethod 13:20:21 def from_call( 13:20:21 cls, 13:20:21 func: Callable[[], TResult], 13:20:21 when: Literal["collect", "setup", "call", "teardown"], 13:20:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:20:21 ) -> CallInfo[TResult]: 13:20:21 """Call func, wrapping the result in a CallInfo. 13:20:21 13:20:21 :param func: 13:20:21 The function to call. Called without arguments. 13:20:21 :type func: Callable[[], _pytest.runner.TResult] 13:20:21 :param when: 13:20:21 The phase in which the function is called. 13:20:21 :param reraise: 13:20:21 Exception or exceptions that shall propagate if raised by the 13:20:21 function, instead of being wrapped in the CallInfo. 13:20:21 """ 13:20:21 excinfo = None 13:20:21 instant = timing.Instant() 13:20:21 try: 13:20:21 > result: TResult | None = func() 13:20:21 ^^^^^^ 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:20:21 lambda: runtest_hook(item=item, **kwds), 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:20:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:20:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:20:21 yield 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:20:21 return (yield) 13:20:21 ^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:20:21 item.session._setupstate.setup(item) 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:20:21 col.setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:20:21 super().setup() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:20:21 self._request._fillfixtures() 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:20:21 item.funcargs[argname] = self.getfixturevalue(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:20:21 fixturedef = self._get_active_fixturedef(argname) 13:20:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:20:21 fixturedef.execute(request=subrequest) 13:20:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:20:21 13:20:21 self = 13:20:21 request = > 13:20:21 13:20:21 def execute(self, request: SubRequest) -> FixtureValue: 13:20:21 """Return the value of this fixture, executing it if not cached.""" 13:20:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:20:21 # This needs to be done before checking if we have a cached value, since 13:20:21 # if a dependent fixture has their cache invalidated, e.g. due to 13:20:21 # parametrization, they finalize themselves and fixtures depending on it 13:20:21 # (which will likely include this fixture) setting `self.cached_result = None`. 13:20:21 # See #4871 13:20:21 requested_fixtures_that_should_finalize_us = [] 13:20:21 for argname in self.argnames: 13:20:21 fixturedef = request._get_active_fixturedef(argname) 13:20:21 # Saves requested fixtures in a list so we later can add our finalizer 13:20:21 # to them, ensuring that if a requested fixture gets torn down we get torn 13:20:21 # down first. This is generally handled by SetupState, but still currently 13:20:21 # needed when this fixture is not parametrized but depends on a parametrized 13:20:21 # fixture. 13:20:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:20:21 13:20:21 # Check for (and return) cached value/exception. 13:20:21 if self.cached_result is not None: 13:20:21 request_cache_key = self.cache_key(request) 13:20:21 cache_key = self.cached_result[1] 13:20:21 try: 13:20:21 # Attempt to make a normal == check: this might fail for objects 13:20:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:20:21 cache_hit = bool(request_cache_key == cache_key) 13:20:21 except (ValueError, RuntimeError): 13:20:21 # If the comparison raises, use 'is' as fallback. 13:20:21 cache_hit = request_cache_key is cache_key 13:20:21 13:20:21 if cache_hit: 13:20:21 if self.cached_result[2] is not None: 13:20:21 exc, exc_tb = self.cached_result[2] 13:20:21 raise exc.with_traceback(exc_tb) 13:20:21 else: 13:20:21 return self.cached_result[0] 13:20:21 # We have a previous but differently parametrized fixture instance 13:20:21 # so we need to tear it down before creating a new one. 13:20:21 self.finish(request) 13:20:21 assert self.cached_result is None 13:20:21 13:20:21 # Add finalizer to requested fixtures we saved previously. 13:20:21 # We make sure to do this after checking for cached value to avoid 13:20:21 # adding our finalizer multiple times. (#12135) 13:20:21 finalizer = functools.partial(self.finish, request=request) 13:20:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:20:21 parent_fixture.addfinalizer(finalizer) 13:20:21 13:20:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:20:21 # which is executed last. 13:20:21 > assert not self._finalizers 13:20:21 ^^^^^^^^^^^^^^^^^^^^ 13:20:21 E AssertionError 13:20:21 13:20:21 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:20:21 =========================== short test summary info ============================ 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 13:20:21 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 13:20:21 35 errors in 106.54s (0:01:46) 13:20:21 tests221: exit 1 (106.80 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5028 13:20:22 tests221: FAIL ✖ in 1 minute 55.3 seconds 13:20:22 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 13:20:23 tests71: freeze> python -m pip freeze --all 13:20:23 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 13:20:23 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 13:20:23 using environment variables from ./karaf71.env 13:20:23 pytest -q transportpce_tests/7.1/test01_portmapping.py 13:20:27 tests_hybrid: freeze> python -m pip freeze --all 13:20:28 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.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 13:20:28 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 13:20:28 using environment variables from ./karaf221.env 13:20:28 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 13:22:04 EEEEEEEEEEEE [100%] 13:22:06 ==================================== ERRORS ==================================== 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 13:22:06 13:22:06 cls = 13:22:06 13:22:06 @classmethod 13:22:06 def setUpClass(cls): 13:22:06 > cls.processes = test_utils.start_tpce() 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 13:22:06 transportpce_tests/7.1/test01_portmapping.py:32: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 def start_tpce(): 13:22:06 if 'NO_ODL_STARTUP' in os.environ: 13:22:06 print('No OpenDaylight instance to start!') 13:22:06 return [] 13:22:06 print('starting OpenDaylight...') 13:22:06 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:22:06 process = start_lighty() 13:22:06 else: 13:22:06 process = start_karaf() 13:22:06 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:22:06 print('OpenDaylight started !') 13:22:06 else: 13:22:06 print('OpenDaylight failed to start !') 13:22:06 shutdown_process(process) 13:22:06 for pid in process_list: 13:22:06 shutdown_process(pid) 13:22:06 > sys.exit(1) 13:22:06 E SystemExit: 1 13:22:06 13:22:06 transportpce_tests/common/test_utils.py:234: SystemExit 13:22:06 ---------------------------- Captured stdout setup ----------------------------- 13:22:06 starting OpenDaylight... 13:22:06 starting KARAF (karaf71) TransportPCE build... 13:22:06 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d38074c0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10fba60> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d2a0afc0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d38072e0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10fb7e0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d2a0afc0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10fba60> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10f9120> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10fb7e0> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10fb600> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 13:22:06 13:22:06 cls = 13:22:06 func = . at 0x7f84d10f9120> 13:22:06 when = 'setup' 13:22:06 reraise = (, ) 13:22:06 13:22:06 @classmethod 13:22:06 def from_call( 13:22:06 cls, 13:22:06 func: Callable[[], TResult], 13:22:06 when: Literal["collect", "setup", "call", "teardown"], 13:22:06 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:06 ) -> CallInfo[TResult]: 13:22:06 """Call func, wrapping the result in a CallInfo. 13:22:06 13:22:06 :param func: 13:22:06 The function to call. Called without arguments. 13:22:06 :type func: Callable[[], _pytest.runner.TResult] 13:22:06 :param when: 13:22:06 The phase in which the function is called. 13:22:06 :param reraise: 13:22:06 Exception or exceptions that shall propagate if raised by the 13:22:06 function, instead of being wrapped in the CallInfo. 13:22:06 """ 13:22:06 excinfo = None 13:22:06 instant = timing.Instant() 13:22:06 try: 13:22:06 > result: TResult | None = func() 13:22:06 ^^^^^^ 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:06 lambda: runtest_hook(item=item, **kwds), 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:06 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:06 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:06 yield 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:06 return (yield) 13:22:06 ^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:06 item.session._setupstate.setup(item) 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:06 col.setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:06 super().setup() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:06 self._request._fillfixtures() 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:06 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:06 fixturedef = self._get_active_fixturedef(argname) 13:22:06 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:06 fixturedef.execute(request=subrequest) 13:22:06 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:06 13:22:06 self = 13:22:06 request = > 13:22:06 13:22:06 def execute(self, request: SubRequest) -> FixtureValue: 13:22:06 """Return the value of this fixture, executing it if not cached.""" 13:22:06 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:06 # This needs to be done before checking if we have a cached value, since 13:22:06 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:06 # parametrization, they finalize themselves and fixtures depending on it 13:22:06 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:06 # See #4871 13:22:06 requested_fixtures_that_should_finalize_us = [] 13:22:06 for argname in self.argnames: 13:22:06 fixturedef = request._get_active_fixturedef(argname) 13:22:06 # Saves requested fixtures in a list so we later can add our finalizer 13:22:06 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:06 # down first. This is generally handled by SetupState, but still currently 13:22:06 # needed when this fixture is not parametrized but depends on a parametrized 13:22:06 # fixture. 13:22:06 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:06 13:22:06 # Check for (and return) cached value/exception. 13:22:06 if self.cached_result is not None: 13:22:06 request_cache_key = self.cache_key(request) 13:22:06 cache_key = self.cached_result[1] 13:22:06 try: 13:22:06 # Attempt to make a normal == check: this might fail for objects 13:22:06 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:06 cache_hit = bool(request_cache_key == cache_key) 13:22:06 except (ValueError, RuntimeError): 13:22:06 # If the comparison raises, use 'is' as fallback. 13:22:06 cache_hit = request_cache_key is cache_key 13:22:06 13:22:06 if cache_hit: 13:22:06 if self.cached_result[2] is not None: 13:22:06 exc, exc_tb = self.cached_result[2] 13:22:06 raise exc.with_traceback(exc_tb) 13:22:06 else: 13:22:06 return self.cached_result[0] 13:22:06 # We have a previous but differently parametrized fixture instance 13:22:06 # so we need to tear it down before creating a new one. 13:22:06 self.finish(request) 13:22:06 assert self.cached_result is None 13:22:06 13:22:06 # Add finalizer to requested fixtures we saved previously. 13:22:06 # We make sure to do this after checking for cached value to avoid 13:22:06 # adding our finalizer multiple times. (#12135) 13:22:06 finalizer = functools.partial(self.finish, request=request) 13:22:06 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:06 parent_fixture.addfinalizer(finalizer) 13:22:06 13:22:06 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:06 # which is executed last. 13:22:06 > assert not self._finalizers 13:22:06 ^^^^^^^^^^^^^^^^^^^^ 13:22:06 E AssertionError 13:22:06 13:22:06 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:06 =========================== short test summary info ============================ 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 13:22:06 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 13:22:06 12 errors in 102.28s (0:01:42) 13:22:06 tests71: exit 1 (102.56 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5160 13:22:08 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 13:22:17 ==================================== ERRORS ==================================== 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 13:22:17 13:22:17 cls = 13:22:17 13:22:17 @classmethod 13:22:17 def setUpClass(cls): 13:22:17 > cls.processes = test_utils.start_tpce() 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 13:22:17 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 def start_tpce(): 13:22:17 if 'NO_ODL_STARTUP' in os.environ: 13:22:17 print('No OpenDaylight instance to start!') 13:22:17 return [] 13:22:17 print('starting OpenDaylight...') 13:22:17 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 13:22:17 process = start_lighty() 13:22:17 else: 13:22:17 process = start_karaf() 13:22:17 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 13:22:17 print('OpenDaylight started !') 13:22:17 else: 13:22:17 print('OpenDaylight failed to start !') 13:22:17 shutdown_process(process) 13:22:17 for pid in process_list: 13:22:17 shutdown_process(pid) 13:22:17 > sys.exit(1) 13:22:17 E SystemExit: 1 13:22:17 13:22:17 transportpce_tests/common/test_utils.py:234: SystemExit 13:22:17 ---------------------------- Captured stdout setup ----------------------------- 13:22:17 starting OpenDaylight... 13:22:17 starting KARAF (karaf221) TransportPCE build... 13:22:17 Pattern not found after 100 seconds! OpenDaylight failed to start ! 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f6a20> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9747f60> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6febdf6f20> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f5440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6feb06d3a0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f5440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746700> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746980> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746700> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f5440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d940> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746700> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f5440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911dda0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f5440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f58a0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe97468e0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe96f58a0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe97468e0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911e0c0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911e0c0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911c860> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d440> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d260> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d6c0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d800> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911dd00> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d800> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911df80> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911cea0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911da80> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911da80> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911ea20> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911d9e0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911dbc0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911df80> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911e5c0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe9746d40> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 13:22:17 13:22:17 cls = 13:22:17 func = . at 0x7f6fe911e2a0> 13:22:17 when = 'setup' 13:22:17 reraise = (, ) 13:22:17 13:22:17 @classmethod 13:22:17 def from_call( 13:22:17 cls, 13:22:17 func: Callable[[], TResult], 13:22:17 when: Literal["collect", "setup", "call", "teardown"], 13:22:17 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 13:22:17 ) -> CallInfo[TResult]: 13:22:17 """Call func, wrapping the result in a CallInfo. 13:22:17 13:22:17 :param func: 13:22:17 The function to call. Called without arguments. 13:22:17 :type func: Callable[[], _pytest.runner.TResult] 13:22:17 :param when: 13:22:17 The phase in which the function is called. 13:22:17 :param reraise: 13:22:17 Exception or exceptions that shall propagate if raised by the 13:22:17 function, instead of being wrapped in the CallInfo. 13:22:17 """ 13:22:17 excinfo = None 13:22:17 instant = timing.Instant() 13:22:17 try: 13:22:17 > result: TResult | None = func() 13:22:17 ^^^^^^ 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 13:22:17 lambda: runtest_hook(item=item, **kwds), 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 13:22:17 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 13:22:17 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 13:22:17 yield 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 13:22:17 return (yield) 13:22:17 ^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 13:22:17 item.session._setupstate.setup(item) 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 13:22:17 col.setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 13:22:17 super().setup() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 13:22:17 self._request._fillfixtures() 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 13:22:17 item.funcargs[argname] = self.getfixturevalue(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 13:22:17 fixturedef = self._get_active_fixturedef(argname) 13:22:17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 13:22:17 fixturedef.execute(request=subrequest) 13:22:17 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 13:22:17 13:22:17 self = 13:22:17 request = > 13:22:17 13:22:17 def execute(self, request: SubRequest) -> FixtureValue: 13:22:17 """Return the value of this fixture, executing it if not cached.""" 13:22:17 # Ensure that the dependent fixtures requested by this fixture are loaded. 13:22:17 # This needs to be done before checking if we have a cached value, since 13:22:17 # if a dependent fixture has their cache invalidated, e.g. due to 13:22:17 # parametrization, they finalize themselves and fixtures depending on it 13:22:17 # (which will likely include this fixture) setting `self.cached_result = None`. 13:22:17 # See #4871 13:22:17 requested_fixtures_that_should_finalize_us = [] 13:22:17 for argname in self.argnames: 13:22:17 fixturedef = request._get_active_fixturedef(argname) 13:22:17 # Saves requested fixtures in a list so we later can add our finalizer 13:22:17 # to them, ensuring that if a requested fixture gets torn down we get torn 13:22:17 # down first. This is generally handled by SetupState, but still currently 13:22:17 # needed when this fixture is not parametrized but depends on a parametrized 13:22:17 # fixture. 13:22:17 requested_fixtures_that_should_finalize_us.append(fixturedef) 13:22:17 13:22:17 # Check for (and return) cached value/exception. 13:22:17 if self.cached_result is not None: 13:22:17 request_cache_key = self.cache_key(request) 13:22:17 cache_key = self.cached_result[1] 13:22:17 try: 13:22:17 # Attempt to make a normal == check: this might fail for objects 13:22:17 # which do not implement the standard comparison (like numpy arrays -- #6497). 13:22:17 cache_hit = bool(request_cache_key == cache_key) 13:22:17 except (ValueError, RuntimeError): 13:22:17 # If the comparison raises, use 'is' as fallback. 13:22:17 cache_hit = request_cache_key is cache_key 13:22:17 13:22:17 if cache_hit: 13:22:17 if self.cached_result[2] is not None: 13:22:17 exc, exc_tb = self.cached_result[2] 13:22:17 raise exc.with_traceback(exc_tb) 13:22:17 else: 13:22:17 return self.cached_result[0] 13:22:17 # We have a previous but differently parametrized fixture instance 13:22:17 # so we need to tear it down before creating a new one. 13:22:17 self.finish(request) 13:22:17 assert self.cached_result is None 13:22:17 13:22:17 # Add finalizer to requested fixtures we saved previously. 13:22:17 # We make sure to do this after checking for cached value to avoid 13:22:17 # adding our finalizer multiple times. (#12135) 13:22:17 finalizer = functools.partial(self.finish, request=request) 13:22:17 for parent_fixture in requested_fixtures_that_should_finalize_us: 13:22:17 parent_fixture.addfinalizer(finalizer) 13:22:17 13:22:17 # Register the pytest_fixture_post_finalizer as the first finalizer, 13:22:17 # which is executed last. 13:22:17 > assert not self._finalizers 13:22:17 ^^^^^^^^^^^^^^^^^^^^ 13:22:17 E AssertionError 13:22:17 13:22:17 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 13:22:17 =========================== short test summary info ============================ 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 13:22:17 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 13:22:17 51 errors in 109.44s (0:01:49) 13:22:17 tests71: FAIL ✖ in 1 minute 48.94 seconds 13:22:17 tests_hybrid: exit 1 (109.73 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5176 13:22:17 buildcontroller: FAIL code 1 (58.99=setup[7.83]+cmd[51.16] seconds) 13:22:17 sims: OK (10.27=setup[6.96]+cmd[3.31] seconds) 13:22:17 testsPCE: FAIL code 1 (178.50=setup[54.19]+cmd[124.30] seconds) 13:22:17 build_karaf_tests221: FAIL code 127 (17.72=setup[8.78]+cmd[8.94] seconds) 13:22:17 tests_tapi: FAIL code 1 (116.69=setup[6.80]+cmd[109.89] seconds) 13:22:17 tests221: FAIL code 1 (115.30=setup[8.49]+cmd[106.80] seconds) 13:22:17 build_karaf_tests71: FAIL code 127 (17.94=setup[8.91]+cmd[9.03] seconds) 13:22:17 tests71: FAIL code 1 (108.94=setup[6.38]+cmd[102.56] seconds) 13:22:17 build_karaf_tests200: FAIL code 127 (17.78=setup[8.91]+cmd[8.87] seconds) 13:22:17 tests200: FAIL code 1 (110.66=setup[8.44]+cmd[102.22] seconds) 13:22:17 tests_hybrid: FAIL code 1 (116.07=setup[6.34]+cmd[109.73] seconds) 13:22:17 buildlighty: FAIL code 9 (20.93=setup[11.62]+cmd[9.30] seconds) 13:22:17 docs: OK (18.64=setup[15.06]+cmd[3.58] seconds) 13:22:17 docs-linkcheck: OK (20.13=setup[14.55]+cmd[5.58] seconds) 13:22:17 checkbashisms: OK (3.13=setup[1.90]+cmd[0.01,0.05,1.16] seconds) 13:22:17 pre-commit: OK (62.80=setup[2.82]+cmd[0.02,0.00,51.90,8.05] seconds) 13:22:17 pylint: FAIL code 1 (25.37=setup[3.35]+cmd[22.02] seconds) 13:22:17 evaluation failed :( (603.52 seconds) 13:22:17 + tox_status=1 13:22:17 + echo '---> Completed tox runs' 13:22:17 ---> Completed tox runs 13:22:17 + for i in .tox/*/log 13:22:17 ++ echo .tox/build_karaf_tests200/log 13:22:17 ++ awk -F/ '{print $2}' 13:22:17 + tox_env=build_karaf_tests200 13:22:17 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 13:22:17 + for i in .tox/*/log 13:22:17 ++ echo .tox/build_karaf_tests221/log 13:22:17 ++ awk -F/ '{print $2}' 13:22:17 + tox_env=build_karaf_tests221 13:22:17 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 13:22:17 + for i in .tox/*/log 13:22:17 ++ awk -F/ '{print $2}' 13:22:17 ++ echo .tox/build_karaf_tests71/log 13:22:17 + tox_env=build_karaf_tests71 13:22:17 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 13:22:17 + for i in .tox/*/log 13:22:17 ++ echo .tox/buildcontroller/log 13:22:17 ++ awk -F/ '{print $2}' 13:22:17 + tox_env=buildcontroller 13:22:17 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/buildlighty/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=buildlighty 13:22:18 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/checkbashisms/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=checkbashisms 13:22:18 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/docs-linkcheck/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=docs-linkcheck 13:22:18 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 13:22:18 + for i in .tox/*/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 ++ echo .tox/docs/log 13:22:18 + tox_env=docs 13:22:18 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/pre-commit/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=pre-commit 13:22:18 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/pylint/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=pylint 13:22:18 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/sims/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=sims 13:22:18 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/tests200/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=tests200 13:22:18 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/tests221/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=tests221 13:22:18 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/tests71/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=tests71 13:22:18 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/testsPCE/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=testsPCE 13:22:18 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/tests_hybrid/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=tests_hybrid 13:22:18 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 13:22:18 + for i in .tox/*/log 13:22:18 ++ echo .tox/tests_tapi/log 13:22:18 ++ awk -F/ '{print $2}' 13:22:18 + tox_env=tests_tapi 13:22:18 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 13:22:18 + DOC_DIR=docs/_build/html 13:22:18 + [[ -d docs/_build/html ]] 13:22:18 + echo '---> Archiving generated docs' 13:22:18 ---> Archiving generated docs 13:22:18 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:22:18 + echo '---> tox-run.sh ends' 13:22:18 ---> tox-run.sh ends 13:22:18 + test 1 -eq 0 13:22:18 + exit 1 13:22:18 ++ '[' 1 = 1 ']' 13:22:18 ++ '[' -x /usr/bin/clear_console ']' 13:22:18 ++ /usr/bin/clear_console -q 13:22:18 Build step 'Execute shell' marked build as failure 13:22:18 $ ssh-agent -k 13:22:18 unset SSH_AUTH_SOCK; 13:22:18 unset SSH_AGENT_PID; 13:22:18 echo Agent pid 1570 killed; 13:22:18 [ssh-agent] Stopped. 13:22:18 [PostBuildScript] - [INFO] Executing post build scripts. 13:22:18 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16904929933809671140.sh 13:22:18 ---> sysstat.sh 13:22:18 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins875426944548973825.sh 13:22:18 ---> package-listing.sh 13:22:18 + '[' -f /etc/os-release ']' 13:22:18 + . /etc/os-release 13:22:18 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 13:22:18 ++ NAME=Ubuntu 13:22:18 ++ VERSION_ID=22.04 13:22:18 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 13:22:18 ++ VERSION_CODENAME=jammy 13:22:18 ++ ID=ubuntu 13:22:18 ++ ID_LIKE=debian 13:22:18 ++ HOME_URL=https://www.ubuntu.com/ 13:22:18 ++ SUPPORT_URL=https://help.ubuntu.com/ 13:22:18 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 13:22:18 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 13:22:18 ++ UBUNTU_CODENAME=jammy 13:22:18 + case " ${ID:-} ${ID_LIKE:-} " in 13:22:18 + OS_FAMILY=debian 13:22:18 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 13:22:18 + START_PACKAGES=/tmp/packages_start.txt 13:22:18 + END_PACKAGES=/tmp/packages_end.txt 13:22:18 + DIFF_PACKAGES=/tmp/packages_diff.txt 13:22:18 + PACKAGES=/tmp/packages_start.txt 13:22:18 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:22:18 + PACKAGES=/tmp/packages_end.txt 13:22:18 + case "${OS_FAMILY}" in 13:22:18 + dpkg -l 13:22:18 + grep '^ii' 13:22:18 + '[' -f /tmp/packages_start.txt ']' 13:22:18 + '[' -f /tmp/packages_end.txt ']' 13:22:18 + diff /tmp/packages_start.txt /tmp/packages_end.txt 13:22:18 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 13:22:18 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:22:18 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 13:22:18 + exit 0 13:22:18 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9190718051043963679.sh 13:22:18 ---> capture-instance-metadata.sh 13:22:18 Setup pyenv: 13:22:18 system 13:22:18 3.8.20 13:22:18 3.9.20 13:22:18 3.10.15 13:22:18 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:22:18 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OcL6 from file:/tmp/.os_lf_venv 13:22:18 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:22:20 lf-activate-venv(): INFO: Installing additional packages: lftools 13:22:36 lf-activate-venv(): INFO: Adding /tmp/venv-OcL6/bin to PATH 13:22:36 INFO: Running in OpenStack, capturing instance metadata 13:22:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16767180448562333420.sh 13:22:37 provisioning config files... 13:22:37 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6163 13:22:37 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config16179018705276781766tmp 13:22:37 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 13:22:37 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 13:22:37 provisioning config files... 13:22:37 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 13:22:37 [EnvInject] - Injecting environment variables from a build step. 13:22:37 [EnvInject] - Injecting as environment variables the properties content 13:22:37 SERVER_ID=logs 13:22:37 13:22:37 [EnvInject] - Variables injected successfully. 13:22:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4327637901692151403.sh 13:22:37 ---> create-netrc.sh 13:22:37 WARN: Log server credential not found. 13:22:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12999389941493894612.sh 13:22:37 ---> python-tools-install.sh 13:22:37 Setup pyenv: 13:22:37 system 13:22:37 3.8.20 13:22:37 3.9.20 13:22:37 3.10.15 13:22:37 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:22:38 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OcL6 from file:/tmp/.os_lf_venv 13:22:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:22:39 lf-activate-venv(): INFO: Installing additional packages: lftools 13:22:48 lf-activate-venv(): INFO: Adding /tmp/venv-OcL6/bin to PATH 13:22:48 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins11485122989750898388.sh 13:22:48 ---> uv-install.sh 13:22:48 uv 0.12.23 is already installed 13:22:48 uvx 0.12.23 (x86_64-unknown-linux-gnu) 13:22:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13762324487771746773.sh 13:22:48 ---> sudo-logs.sh 13:22:48 Archiving 'sudo' log.. 13:22:48 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins5191981657059078612.sh 13:22:48 ---> job-cost.sh 13:22:48 INFO: Activating Python virtual environment... 13:22:48 Setup pyenv: 13:22:49 system 13:22:49 3.8.20 13:22:49 3.9.20 13:22:49 3.10.15 13:22:49 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:22:49 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OcL6 from file:/tmp/.os_lf_venv 13:22:49 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:22:50 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 13:22:58 lf-activate-venv(): INFO: Adding /tmp/venv-OcL6/bin to PATH 13:22:58 INFO: No stack-cost file found 13:22:58 INFO: Instance uptime: 778s 13:22:58 INFO: Fetching instance metadata (attempt 1 of 3)... 13:22:58 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 13:22:58 INFO: Successfully fetched instance metadata 13:22:58 INFO: Instance type: v3-standard-4 13:22:58 INFO: Retrieving pricing info for: v3-standard-4 13:22:58 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 13:22:58 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=778 13:22:59 INFO: Successfully fetched Vexxhost pricing API 13:22:59 INFO: Retrieved cost: 0.11 13:22:59 INFO: Retrieved resource: v3-standard-4 13:22:59 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 13:22:59 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 13:22:59 INFO: Successfully archived job cost data 13:22:59 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6163,2026-10-08 13:22:59,v3-standard-4,778,0.11,0.00,FAILURE 13:22:59 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins6489510231414063815.sh 13:22:59 ---> logs-deploy.sh 13:22:59 Setup pyenv: 13:22:59 system 13:22:59 3.8.20 13:22:59 3.9.20 13:22:59 3.10.15 13:22:59 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:22:59 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-OcL6 from file:/tmp/.os_lf_venv 13:22:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:23:01 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 13:23:10 lf-activate-venv(): INFO: Adding /tmp/venv-OcL6/bin to PATH 13:23:10 WARNING: Nexus logging server not set 13:23:10 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6163/ 13:23:10 INFO: archiving logs to S3 13:23:11 ---> uname -a: 13:23:11 Linux prd-ubuntu2204-docker-4c-16g-62934 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 13:23:11 13:23:11 13:23:11 ---> lscpu: 13:23:11 Architecture: x86_64 13:23:11 CPU op-mode(s): 32-bit, 64-bit 13:23:11 Address sizes: 40 bits physical, 48 bits virtual 13:23:11 Byte Order: Little Endian 13:23:11 CPU(s): 4 13:23:11 On-line CPU(s) list: 0-3 13:23:11 Vendor ID: AuthenticAMD 13:23:11 Model name: AMD EPYC-Rome Processor 13:23:11 CPU family: 23 13:23:11 Model: 49 13:23:11 Thread(s) per core: 1 13:23:11 Core(s) per socket: 1 13:23:11 Socket(s): 4 13:23:11 Stepping: 0 13:23:11 BogoMIPS: 5599.99 13:23:11 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 13:23:11 Virtualization: AMD-V 13:23:11 Hypervisor vendor: KVM 13:23:11 Virtualization type: full 13:23:11 L1d cache: 128 KiB (4 instances) 13:23:11 L1i cache: 128 KiB (4 instances) 13:23:11 L2 cache: 2 MiB (4 instances) 13:23:11 L3 cache: 64 MiB (4 instances) 13:23:11 NUMA node(s): 1 13:23:11 NUMA node0 CPU(s): 0-3 13:23:11 Vulnerability Gather data sampling: Not affected 13:23:11 Vulnerability Indirect target selection: Not affected 13:23:11 Vulnerability Itlb multihit: Not affected 13:23:11 Vulnerability L1tf: Not affected 13:23:11 Vulnerability Mds: Not affected 13:23:11 Vulnerability Meltdown: Not affected 13:23:11 Vulnerability Mmio stale data: Not affected 13:23:11 Vulnerability Reg file data sampling: Not affected 13:23:11 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 13:23:11 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 13:23:11 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 13:23:11 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 13:23:11 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 13:23:11 Vulnerability Srbds: Not affected 13:23:11 Vulnerability Tsa: Not affected 13:23:11 Vulnerability Tsx async abort: Not affected 13:23:11 Vulnerability Vmscape: Not affected 13:23:11 13:23:11 13:23:11 ---> nproc: 13:23:11 4 13:23:11 13:23:11 13:23:11 ---> df -h: 13:23:11 Filesystem Size Used Avail Use% Mounted on 13:23:11 tmpfs 1.6G 1.1M 1.6G 1% /run 13:23:11 /dev/vda1 78G 12G 66G 15% / 13:23:11 tmpfs 7.9G 0 7.9G 0% /dev/shm 13:23:11 tmpfs 5.0M 0 5.0M 0% /run/lock 13:23:11 /dev/vda15 105M 6.1M 99M 6% /boot/efi 13:23:11 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 13:23:11 13:23:11 13:23:11 ---> free -m: 13:23:11 total used free shared buff/cache available 13:23:11 Mem: 15989 707 9125 4 6156 14938 13:23:11 Swap: 1023 0 1023 13:23:11 13:23:11 13:23:11 ---> ip addr: 13:23:11 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 13:23:11 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 13:23:11 inet 127.0.0.1/8 scope host lo 13:23:11 valid_lft forever preferred_lft forever 13:23:11 inet6 ::1/128 scope host 13:23:11 valid_lft forever preferred_lft forever 13:23:11 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 13:23:11 link/ether fa:16:3e:0a:7f:c7 brd ff:ff:ff:ff:ff:ff 13:23:11 altname enp0s3 13:23:11 inet 10.30.170.16/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 13:23:11 valid_lft 85618sec preferred_lft 85618sec 13:23:11 inet6 fe80::f816:3eff:fe0a:7fc7/64 scope link 13:23:11 valid_lft forever preferred_lft forever 13:23:11 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 13:23:11 link/ether 1a:64:f3:59:51:be brd ff:ff:ff:ff:ff:ff 13:23:11 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 13:23:11 valid_lft forever preferred_lft forever 13:23:11 inet6 fe80::1864:f3ff:fe59:51be/64 scope link 13:23:11 valid_lft forever preferred_lft forever 13:23:11 13:23:11 13:23:11 ---> sar -b -r -n DEV: 13:23:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62934) 10/08/26 _x86_64_ (4 CPU) 13:23:11 13:23:11 13:10:11 LINUX RESTART (4 CPU) 13:23:11 13:23:11 13:23:11 ---> sar -P ALL: 13:23:11 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62934) 10/08/26 _x86_64_ (4 CPU) 13:23:11 13:23:11 13:10:11 LINUX RESTART (4 CPU) 13:23:11 13:23:11 13:23:11