05:03:46 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/124847 05:03:46 Running as SYSTEM 05:03:46 [EnvInject] - Loading node environment variables. 05:03:46 Building remotely on prd-ubuntu2204-docker-4c-16g-64790 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 05:03:47 [ssh-agent] Looking for ssh-agent implementation... 05:03:47 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:03:47 $ ssh-agent 05:03:47 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXihWvC0/agent.1568 05:03:47 SSH_AGENT_PID=1570 05:03:47 [ssh-agent] Started. 05:03:47 Running ssh-add (command line suppressed) 05:03:47 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_3910032341965173748.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_3910032341965173748.key) 05:03:47 [ssh-agent] Using credentials jenkins (jenkins-ssh) 05:03:47 The recommended git tool is: NONE 05:03:50 using credential jenkins-ssh 05:03:50 Wiping out workspace first. 05:03:50 Cloning the remote Git repository 05:03:50 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 05:03:50 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 05:03:50 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 05:03:50 > git --version # timeout=10 05:03:50 > git --version # 'git version 2.34.1' 05:03:50 using GIT_SSH to set credentials jenkins-ssh 05:03:50 Verifying host key using known hosts file, will automatically accept unseen keys 05:03:50 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 05:03:53 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 05:03:53 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:03:54 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 05:03:54 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 05:03:54 using GIT_SSH to set credentials jenkins-ssh 05:03:54 Verifying host key using known hosts file, will automatically accept unseen keys 05:03:54 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/47/124847/5 # timeout=10 05:03:54 > git rev-parse 83ffa6eb102fcd794a01400f123dff7b30cd4f0b^{commit} # timeout=10 05:03:54 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 05:03:54 Checking out Revision 83ffa6eb102fcd794a01400f123dff7b30cd4f0b (refs/changes/47/124847/5) 05:03:54 > git config core.sparsecheckout # timeout=10 05:03:54 > git checkout -f 83ffa6eb102fcd794a01400f123dff7b30cd4f0b # timeout=10 05:03:58 Commit message: "common: fix EventSubscriber thread-safety bugs" 05:03:58 > git rev-parse FETCH_HEAD^{commit} # timeout=10 05:03:58 > git rev-list --no-walk bfd2c47e37d47f66796eaf948699644129552e69 # timeout=10 05:03:58 > git remote # timeout=10 05:03:58 > git submodule init # timeout=10 05:03:58 > git submodule sync # timeout=10 05:03:58 > git config --get remote.origin.url # timeout=10 05:03:58 > git submodule init # timeout=10 05:03:58 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 05:03:58 ERROR: No submodules found. 05:03:58 provisioning config files... 05:03:58 copy managed file [npmrc] to file:/home/jenkins/.npmrc 05:03:58 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 05:03:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7272750563473960041.sh 05:03:58 ---> python-tools-install.sh 05:03:58 Setup pyenv: 05:03:58 * system (set by /opt/pyenv/version) 05:03:58 * 3.8.20 (set by /opt/pyenv/version) 05:03:58 * 3.9.20 (set by /opt/pyenv/version) 05:03:58 3.10.15 05:03:58 3.11.10 05:04:03 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-4UHk 05:04:03 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 05:04:03 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:04:07 lf-activate-venv(): INFO: Installing additional packages: lftools 05:04:31 lf-activate-venv(): INFO: Adding /tmp/venv-4UHk/bin to PATH 05:04:31 Generating Requirements File 05:05:02 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 05:05:02 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 05:05:02 Python 3.11.10 05:05:02 pip 26.2.1 from /tmp/venv-4UHk/lib/python3.11/site-packages/pip (python 3.11) 05:05:03 aiohappyeyeballs==2.7.1 05:05:03 aiohttp==3.14.5 05:05:03 aiosignal==1.4.0 05:05:03 appdirs==1.4.4 05:05:03 argcomplete==3.7.2 05:05:03 aspy.yaml==1.3.0 05:05:03 attrs==26.1.0 05:05:03 autopage==0.6.0 05:05:03 beautifulsoup4==4.15.0 05:05:03 boto3==1.43.112 05:05:03 botocore==1.43.112 05:05:03 bs4==0.0.2 05:05:03 certifi==2026.7.22 05:05:03 cffi==2.1.1 05:05:03 cfgv==3.5.0 05:05:03 chardet==7.6.0 05:05:03 charset-normalizer==3.5.2 05:05:03 click==8.5.0 05:05:03 cliff==4.16.0 05:05:03 cmd2==4.3.0 05:05:03 cryptography==3.3.2 05:05:03 debtcollector==3.1.0 05:05:03 decorator==5.3.1 05:05:03 defusedxml==0.7.1 05:05:03 Deprecated==1.3.1 05:05:03 distlib==0.4.3 05:05:03 dnspython==2.9.0 05:05:03 docker==7.2.0 05:05:03 dogpile.cache==1.5.0 05:05:03 durationpy==0.11 05:05:03 email-validator==2.3.0 05:05:03 filelock==4.1.1 05:05:03 frozenlist==1.8.0 05:05:03 future==1.0.0 05:05:03 gitdb==4.0.12 05:05:03 GitPython==3.2.0 05:05:03 httplib2==0.30.2 05:05:03 identify==2.6.20 05:05:03 idna==3.20 05:05:03 importlib-resources==1.5.0 05:05:03 iso8601==2.1.0 05:05:03 Jinja2==3.1.6 05:05:03 jmespath==1.1.0 05:05:03 jsonpatch==1.35 05:05:03 jsonpointer==3.2.1 05:05:03 jsonschema==4.26.0 05:05:03 jsonschema-specifications==2025.9.1 05:05:03 keystoneauth1==5.18.1 05:05:03 kubernetes==36.0.3 05:05:03 lftools==0.37.23 05:05:03 lxml==6.1.3 05:05:03 markdown-it-py==4.2.0 05:05:03 MarkupSafe==3.0.4 05:05:03 mdurl==0.1.2 05:05:03 msgpack==1.2.3 05:05:03 multi_key_dict==2.0.3 05:05:03 multidict==7.1.0 05:05:03 munch==4.0.0 05:05:03 netaddr==1.3.0 05:05:03 niet==1.4.2 05:05:03 nodeenv==1.11.0 05:05:03 oauth2client==4.1.3 05:05:03 oauthlib==4.0.0 05:05:03 openstacksdk==4.21.0 05:05:03 os-service-types==1.9.0 05:05:03 osc-lib==4.7.0 05:05:03 oslo.config==10.7.0 05:05:03 oslo.context==6.5.0 05:05:03 oslo.i18n==6.9.0 05:05:03 oslo.log==8.3.2 05:05:03 oslo.serialization==5.11.0 05:05:03 oslo.utils==10.2.0 05:05:03 packaging==26.3 05:05:03 pbr==7.1.3 05:05:03 platformdirs==4.13.0 05:05:03 prettytable==3.18.0 05:05:03 prompt_toolkit==3.0.53 05:05:03 propcache==0.5.4 05:05:03 psutil==7.2.2 05:05:03 pyasn1==0.6.4 05:05:03 pyasn1_modules==0.4.2 05:05:03 pycparser==3.11 05:05:03 pygerrit2==2.0.15 05:05:03 PyGithub==2.10.0 05:05:03 Pygments==2.21.0 05:05:03 PyJWT==2.15.1 05:05:03 PyNaCl==1.6.2 05:05:03 pyparsing==2.4.7 05:05:03 pyperclip==1.11.0 05:05:03 pyrsistent==0.20.0 05:05:03 python-dateutil==2.9.0.post0 05:05:03 python-discovery==1.6.2 05:05:03 python-heatclient==5.3.0 05:05:03 python-jenkins==1.8.3 05:05:03 python-keystoneclient==6.0.0 05:05:03 python-magnumclient==5.0.0 05:05:03 python-manilaclient==6.3.0 05:05:03 python-openstackclient==10.4.0 05:05:03 python-swiftclient==4.11.0 05:05:03 PyYAML==6.0.3 05:05:03 referencing==0.37.0 05:05:03 requests==2.34.2 05:05:03 requests-oauthlib==2.0.0 05:05:03 rfc3986==2.0.0 05:05:03 rich==15.0.0 05:05:03 rich-argparse==1.8.0 05:05:03 rpds-py==2026.9.1 05:05:03 rsa==4.9.1 05:05:03 ruamel.yaml==0.19.1 05:05:03 ruamel.yaml.clib==0.2.15 05:05:03 s3transfer==0.19.2 05:05:03 simplejson==4.2.0 05:05:03 six==1.17.0 05:05:03 smmap==5.0.3 05:05:03 soupsieve==3.0.3 05:05:03 stevedore==5.9.1 05:05:03 tabulate==0.10.0 05:05:03 toml==0.10.2 05:05:03 tomlkit==0.15.1 05:05:03 tqdm==4.70.1 05:05:03 typing_extensions==4.16.0 05:05:03 urllib3==1.26.20 05:05:03 virtualenv==21.14.7 05:05:03 wcwidth==0.9.2 05:05:03 websocket-client==1.9.2 05:05:03 wrapt==2.5.0 05:05:03 xdg==6.0.0 05:05:03 xmltodict==1.0.4 05:05:03 yarl==1.25.1 05:05:03 yq==4.4.5 05:05:03 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins3791549829981539855.sh 05:05:03 ---> uv-install.sh 05:05:03 Installing uv/uvx (latest) using shell installer 05:05:03 2026-10-13 05:05:03 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-zK3TkO.sh" [1] 05:05:03 downloading uv 0.13.0 x86_64-unknown-linux-gnu 05:05:04 installing to /home/jenkins/.local/bin 05:05:04 uv 05:05:04 uvx 05:05:04 everything's installed! 05:05:04 05:05:04 To add $HOME/.local/bin to your PATH, either restart your shell or run: 05:05:04 05:05:04 source $HOME/.local/bin/env (sh, bash, zsh) 05:05:04 source $HOME/.local/bin/env.fish (fish) 05:05:04 Adding install location to PATH 05:05:04 ---> Validating uv/uvx install 05:05:04 uvx 0.13.0 (x86_64-unknown-linux-gnu) 05:05:04 [EnvInject] - Injecting environment variables from a build step. 05:05:04 [EnvInject] - Injecting as environment variables the properties content 05:05:04 PYTHON=python3 05:05:04 05:05:04 [EnvInject] - Variables injected successfully. 05:05:04 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14160504142117470802.sh 05:05:04 ---> tox-install.sh 05:05:04 + source /home/jenkins/lf-env.sh 05:05:04 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:05:04 ++ mktemp -d /tmp/venv-XXXX 05:05:04 + lf_venv=/tmp/venv-8Phv 05:05:04 + local venv_file=/tmp/.os_lf_venv 05:05:04 + local python=python3 05:05:04 + local options 05:05:04 + local set_path=true 05:05:04 + local install_args= 05:05:04 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:05:04 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:05:04 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:05:04 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 05:05:04 + true 05:05:04 + case $1 in 05:05:04 + venv_file=/tmp/.toxenv 05:05:04 + shift 2 05:05:04 + true 05:05:04 + case $1 in 05:05:04 + shift 05:05:04 + break 05:05:04 + case $python in 05:05:04 + local pkg_list= 05:05:04 + [[ -d /opt/pyenv ]] 05:05:04 + echo 'Setup pyenv:' 05:05:04 Setup pyenv: 05:05:04 + export PYENV_ROOT=/opt/pyenv 05:05:04 + PYENV_ROOT=/opt/pyenv 05:05:04 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:04 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:04 + pyenv versions 05:05:04 system 05:05:04 3.8.20 05:05:04 3.9.20 05:05:04 3.10.15 05:05:04 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:05:04 + command -v pyenv 05:05:04 ++ pyenv init - --no-rehash 05:05:04 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 05:05:04 for i in ${!paths[@]}; do 05:05:04 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 05:05:04 fi; done; 05:05:04 echo "${paths[*]}"'\'')" 05:05:04 export PATH="/opt/pyenv/shims:${PATH}" 05:05:04 export PYENV_SHELL=bash 05:05:04 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 05:05:04 pyenv() { 05:05:04 local command 05:05:04 command="${1:-}" 05:05:04 if [ "$#" -gt 0 ]; then 05:05:04 shift 05:05:04 fi 05:05:04 05:05:04 case "$command" in 05:05:04 rehash|shell) 05:05:04 eval "$(pyenv "sh-$command" "$@")" 05:05:04 ;; 05:05:04 *) 05:05:04 command pyenv "$command" "$@" 05:05:04 ;; 05:05:04 esac 05:05:04 }' 05:05:04 +++ bash --norc -ec 'IFS=:; paths=($PATH); 05:05:04 for i in ${!paths[@]}; do 05:05:04 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 05:05:04 fi; done; 05:05:04 echo "${paths[*]}"' 05:05:04 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:04 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:04 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:04 ++ export PYENV_SHELL=bash 05:05:04 ++ PYENV_SHELL=bash 05:05:04 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 05:05:04 +++ complete -F _pyenv pyenv 05:05:04 ++ lf-pyver python3 05:05:04 ++ local py_version_xy=python3 05:05:04 ++ local py_version_xyz= 05:05:04 ++ pyenv versions 05:05:04 ++ local command 05:05:04 ++ command=versions 05:05:04 ++ '[' 1 -gt 0 ']' 05:05:04 ++ shift 05:05:04 ++ case "$command" in 05:05:04 ++ command pyenv versions 05:05:04 ++ sed 's/^[ *]* //' 05:05:04 ++ grep -E '^[0-9.]*[0-9]$' 05:05:04 ++ awk '{ print $1 }' 05:05:04 ++ [[ ! -s /tmp/.pyenv_versions ]] 05:05:04 +++ grep '^3' /tmp/.pyenv_versions 05:05:04 +++ sort -V 05:05:04 +++ tail -n 1 05:05:04 ++ py_version_xyz=3.11.10 05:05:04 ++ [[ -z 3.11.10 ]] 05:05:04 ++ echo 3.11.10 05:05:04 ++ return 0 05:05:04 + pyenv local 3.11.10 05:05:04 + local command 05:05:04 + command=local 05:05:04 + '[' 2 -gt 0 ']' 05:05:04 + shift 05:05:04 + case "$command" in 05:05:04 + command pyenv local 3.11.10 05:05:04 + for arg in "$@" 05:05:04 + case $arg in 05:05:04 + pkg_list+='tox ' 05:05:04 + for arg in "$@" 05:05:04 + case $arg in 05:05:04 + pkg_list+='virtualenv ' 05:05:04 + for arg in "$@" 05:05:04 + case $arg in 05:05:04 + pkg_list+='urllib3~=1.26.15 ' 05:05:04 + [[ -f /tmp/.toxenv ]] 05:05:04 + [[ ! -f /tmp/.toxenv ]] 05:05:04 + [[ -n '' ]] 05:05:04 + python3 -m venv /tmp/venv-8Phv 05:05:08 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8Phv' 05:05:08 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-8Phv 05:05:08 + echo /tmp/venv-8Phv 05:05:08 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 05:05:08 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 05:05:08 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 05:05:08 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:05:08 + local 'pip_opts=--upgrade --quiet' 05:05:08 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 05:05:08 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 05:05:08 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 05:05:08 + [[ -n '' ]] 05:05:08 + [[ -n '' ]] 05:05:08 + lf-venv-pip-install /tmp/venv-8Phv/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:05:08 + local venv_python=/tmp/venv-8Phv/bin/python3 05:05:08 + shift 05:05:08 + local upstream=https://pypi.org/simple 05:05:08 + /tmp/venv-8Phv/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:05:12 + return 0 05:05:12 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 05:05:12 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 05:05:12 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 05:05:12 + lf-venv-pip-install /tmp/venv-8Phv/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 05:05:12 + local venv_python=/tmp/venv-8Phv/bin/python3 05:05:12 + shift 05:05:12 + local upstream=https://pypi.org/simple 05:05:12 + /tmp/venv-8Phv/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 05:05:14 + return 0 05:05:14 + type python3 05:05:14 + true 05:05:14 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-8Phv/bin to PATH' 05:05:14 lf-activate-venv(): INFO: Adding /tmp/venv-8Phv/bin to PATH 05:05:14 + PATH=/tmp/venv-8Phv/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:14 + return 0 05:05:14 + python3 --version 05:05:14 Python 3.11.10 05:05:14 + python3 -m pip --version 05:05:14 pip 26.2.1 from /tmp/venv-8Phv/lib/python3.11/site-packages/pip (python 3.11) 05:05:14 + python3 -m pip freeze 05:05:15 cachetools==7.2.1 05:05:15 colorama==0.4.6 05:05:15 distlib==0.4.3 05:05:15 filelock==4.1.1 05:05:15 packaging==26.3 05:05:15 platformdirs==4.13.0 05:05:15 pluggy==1.6.0 05:05:15 pyproject-api==1.11.5 05:05:15 python-discovery==1.6.2 05:05:15 tomli_w==1.2.0 05:05:15 tox==4.65.4 05:05:15 typing_extensions==4.16.0 05:05:15 urllib3==1.26.20 05:05:15 virtualenv==21.14.7 05:05:15 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins15649878574425314318.sh 05:05:15 [EnvInject] - Injecting environment variables from a build step. 05:05:15 [EnvInject] - Injecting as environment variables the properties content 05:05:15 PARALLEL=True 05:05:15 05:05:15 [EnvInject] - Variables injected successfully. 05:05:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1204953738218276021.sh 05:05:15 ---> tox-run.sh 05:05:15 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 05:05:15 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 05:05:15 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 05:05:15 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 05:05:15 + source /home/jenkins/lf-env.sh 05:05:15 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:05:15 ++ mktemp -d /tmp/venv-XXXX 05:05:15 + lf_venv=/tmp/venv-QraI 05:05:15 + local venv_file=/tmp/.os_lf_venv 05:05:15 + local python=python3 05:05:15 + local options 05:05:15 + local set_path=true 05:05:15 + local install_args= 05:05:15 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:05:15 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:05:15 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:05:15 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 05:05:15 + true 05:05:15 + case $1 in 05:05:15 + venv_file=/tmp/.toxenv 05:05:15 + shift 2 05:05:15 + true 05:05:15 + case $1 in 05:05:15 + shift 05:05:15 + break 05:05:15 + case $python in 05:05:15 + local pkg_list= 05:05:15 + [[ -d /opt/pyenv ]] 05:05:15 + echo 'Setup pyenv:' 05:05:15 Setup pyenv: 05:05:15 + export PYENV_ROOT=/opt/pyenv 05:05:15 + PYENV_ROOT=/opt/pyenv 05:05:15 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 + pyenv versions 05:05:15 system 05:05:15 3.8.20 05:05:15 3.9.20 05:05:15 3.10.15 05:05:15 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:05:15 + command -v pyenv 05:05:15 ++ pyenv init - --no-rehash 05:05:15 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 05:05:15 for i in ${!paths[@]}; do 05:05:15 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 05:05:15 fi; done; 05:05:15 echo "${paths[*]}"'\'')" 05:05:15 export PATH="/opt/pyenv/shims:${PATH}" 05:05:15 export PYENV_SHELL=bash 05:05:15 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 05:05:15 pyenv() { 05:05:15 local command 05:05:15 command="${1:-}" 05:05:15 if [ "$#" -gt 0 ]; then 05:05:15 shift 05:05:15 fi 05:05:15 05:05:15 case "$command" in 05:05:15 rehash|shell) 05:05:15 eval "$(pyenv "sh-$command" "$@")" 05:05:15 ;; 05:05:15 *) 05:05:15 command pyenv "$command" "$@" 05:05:15 ;; 05:05:15 esac 05:05:15 }' 05:05:15 +++ bash --norc -ec 'IFS=:; paths=($PATH); 05:05:15 for i in ${!paths[@]}; do 05:05:15 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 05:05:15 fi; done; 05:05:15 echo "${paths[*]}"' 05:05:15 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:15 ++ export PYENV_SHELL=bash 05:05:15 ++ PYENV_SHELL=bash 05:05:15 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 05:05:15 +++ complete -F _pyenv pyenv 05:05:15 ++ lf-pyver python3 05:05:15 ++ local py_version_xy=python3 05:05:15 ++ local py_version_xyz= 05:05:15 ++ sed 's/^[ *]* //' 05:05:15 ++ pyenv versions 05:05:15 ++ local command 05:05:15 ++ command=versions 05:05:15 ++ '[' 1 -gt 0 ']' 05:05:15 ++ shift 05:05:15 ++ case "$command" in 05:05:15 ++ grep -E '^[0-9.]*[0-9]$' 05:05:15 ++ command pyenv versions 05:05:15 ++ awk '{ print $1 }' 05:05:15 ++ [[ ! -s /tmp/.pyenv_versions ]] 05:05:15 +++ grep '^3' /tmp/.pyenv_versions 05:05:15 +++ sort -V 05:05:15 +++ tail -n 1 05:05:15 ++ py_version_xyz=3.11.10 05:05:15 ++ [[ -z 3.11.10 ]] 05:05:15 ++ echo 3.11.10 05:05:15 ++ return 0 05:05:15 + pyenv local 3.11.10 05:05:15 + local command 05:05:15 + command=local 05:05:15 + '[' 2 -gt 0 ']' 05:05:15 + shift 05:05:15 + case "$command" in 05:05:15 + command pyenv local 3.11.10 05:05:15 + for arg in "$@" 05:05:15 + case $arg in 05:05:15 + pkg_list+='tox ' 05:05:15 + for arg in "$@" 05:05:15 + case $arg in 05:05:15 + pkg_list+='virtualenv ' 05:05:15 + for arg in "$@" 05:05:15 + case $arg in 05:05:15 + pkg_list+='urllib3~=1.26.15 ' 05:05:15 + [[ -f /tmp/.toxenv ]] 05:05:15 ++ cat /tmp/.toxenv 05:05:15 + lf_venv=/tmp/venv-8Phv 05:05:15 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8Phv from' file:/tmp/.toxenv 05:05:15 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-8Phv from file:/tmp/.toxenv 05:05:15 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 05:05:15 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:05:15 + local 'pip_opts=--upgrade --quiet' 05:05:15 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 05:05:15 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 05:05:15 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 05:05:15 + [[ -n '' ]] 05:05:15 + [[ -n '' ]] 05:05:15 + lf-venv-pip-install /tmp/venv-8Phv/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:05:15 + local venv_python=/tmp/venv-8Phv/bin/python3 05:05:15 + shift 05:05:15 + local upstream=https://pypi.org/simple 05:05:15 + /tmp/venv-8Phv/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:05:16 + return 0 05:05:16 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 05:05:16 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 05:05:16 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 05:05:16 + lf-venv-pip-install /tmp/venv-8Phv/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 05:05:16 + local venv_python=/tmp/venv-8Phv/bin/python3 05:05:16 + shift 05:05:16 + local upstream=https://pypi.org/simple 05:05:16 + /tmp/venv-8Phv/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 05:05:17 + return 0 05:05:17 + type python3 05:05:17 + true 05:05:17 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-8Phv/bin to PATH' 05:05:17 lf-activate-venv(): INFO: Adding /tmp/venv-8Phv/bin to PATH 05:05:17 + PATH=/tmp/venv-8Phv/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:17 + return 0 05:05:17 + [[ -d /opt/pyenv ]] 05:05:17 + echo '---> Setting up pyenv' 05:05:17 ---> Setting up pyenv 05:05:17 + export PYENV_ROOT=/opt/pyenv 05:05:17 + PYENV_ROOT=/opt/pyenv 05:05:17 + export PATH=/opt/pyenv/bin:/tmp/venv-8Phv/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:17 + PATH=/opt/pyenv/bin:/tmp/venv-8Phv/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 05:05:17 ++ pwd 05:05:17 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 05:05:17 + export PYTHONPATH 05:05:17 + export TOX_TESTENV_PASSENV=PYTHONPATH 05:05:17 + TOX_TESTENV_PASSENV=PYTHONPATH 05:05:17 + tox --version 05:05:17 4.65.4 from /tmp/venv-8Phv/lib/python3.11/site-packages/tox/__init__.py 05:05:17 + PARALLEL=True 05:05:17 + TOX_OPTIONS_LIST= 05:05:17 + [[ -n '' ]] 05:05:17 + case ${PARALLEL,,} in 05:05:17 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 05:05:17 + tox --parallel auto --parallel-live 05:05:17 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 05:05:19 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 05:05:19 checkbashisms: freeze> python -m pip freeze --all 05:05:19 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:19 docs: install_deps> python -I -m pip install -r docs/requirements.txt 05:05:19 checkbashisms: pip==26.2.1,setuptools==84.0.0 05:05:19 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 05:05:19 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 05:05:19 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 05:05:21 checkbashisms: OK ✔ in 3.02 seconds 05:05:21 pre-commit: install_deps> python -I -m pip install pre-commit 05:05:23 pre-commit: freeze> python -m pip freeze --all 05:05:24 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.1.1,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.13.0,pre_commit==4.7.0,python-discovery==1.6.2,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.7 05:05:24 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 05:05:24 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 05:05:24 /usr/bin/cpan 05:05:24 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 05:05:24 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 05:05:24 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 05:05:25 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 05:05:25 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 05:05:25 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 05:05:26 buildcontroller: freeze> python -m pip freeze --all 05:05:26 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 05:05:26 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:26 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 05:05:26 + update-java-alternatives -l 05:05:26 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 05:05:26 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 05:05:26 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 05:05:26 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 05:05:26 update-alternatives: error: no alternatives for jaotc 05:05:26 update-alternatives: error: no alternatives for rmic 05:05:26 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 05:05:26 java -version 05:05:26 + JAVA_VER=21.0 05:05:26 + echo 21.0 05:05:26 21.0 05:05:26 + javac -version 05:05:26 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 05:05:27 + JAVAC_VER=21.0 05:05:27 + echo 21.0 05:05:27 21.0 05:05:27 No java21 or newer available 05:05:27 + [ 21.0 -ge 21 ] 05:05:27 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 05:05:27 + echo No java21 or newer available 05:05:27 + exit 1 05:05:27 buildcontroller: exit 1 (0.66 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2821 05:05:27 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 05:05:27 buildcontroller: FAIL ✖ in 9.21 seconds 05:05:27 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 05:05:27 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 05:05:27 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 05:05:28 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 05:05:28 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 05:05:28 [INFO] Once installed this environment will be reused. 05:05:28 [INFO] This may take a few minutes... 05:05:31 pylint: freeze> python -m pip freeze --all 05:05:31 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.13.0,pylint==4.1.3,setuptools==84.0.0,tomlkit==0.15.1 05:05:31 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 05:05:33 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 05:05:33 [INFO] Once installed this environment will be reused. 05:05:33 [INFO] This may take a few minutes... 05:05:35 docs-linkcheck: freeze> python -m pip freeze --all 05:05:35 docs: freeze> python -m pip freeze --all 05:05:35 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.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 05:05:35 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 05:05:36 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 05:05:36 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 05:05:38 docs: OK ✔ in 20.63 seconds 05:05:38 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:39 [INFO] Installing environment for https://github.com/hhatto/autopep8. 05:05:39 [INFO] Once installed this environment will be reused. 05:05:39 [INFO] This may take a few minutes... 05:05:40 docs-linkcheck: OK ✔ in 22.95 seconds 05:05:40 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:43 [INFO] Installing environment for https://github.com/perltidy/perltidy. 05:05:43 [INFO] Once installed this environment will be reused. 05:05:43 [INFO] This may take a few minutes... 05:05:46 build_karaf_tests221: freeze> python -m pip freeze --all 05:05:47 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:47 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:05:47 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 05:05:47 ./build_karaf_for_tests.sh: 22: mvn: not found 05:05:47 build karaf in karaf221 with ./karaf221.env 05:05:47 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:05:47 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3338 05:05:47 build_karaf_tests221: FAIL ✖ in 8.62 seconds 05:05:47 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:47 ************* Module 2.2.1.test12_end2end 05:05:47 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 ************* Module common.test_utils 05:05:47 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:05:47 05:05:47 ----------------------------------- 05:05:47 Your code has been rated at 9.99/10 05:05:47 05:05:47 build_karaf_tests71: freeze> python -m pip freeze --all 05:05:48 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:48 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:05:48 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 05:05:48 ./build_karaf_for_tests.sh: 22: mvn: not found 05:05:48 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:05:48 build karaf in karaf71 with ./karaf71.env 05:05:48 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3361 05:05:48 build_karaf_tests71: FAIL ✖ in 7.2 seconds 05:05:48 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:48 pylint: exit 1 (16.98 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3221 05:05:48 pylint: FAIL ✖ in 21.6 seconds 05:05:48 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:51 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 05:05:51 [INFO] Once installed this environment will be reused. 05:05:51 [INFO] This may take a few minutes... 05:05:54 build_karaf_tests200: freeze> python -m pip freeze --all 05:05:54 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:54 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:05:54 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 05:05:54 ./build_karaf_for_tests.sh: 22: mvn: not found 05:05:54 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:05:54 build karaf in karafoc200 with ./karafoc200.env 05:05:54 build_karaf_tests200: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3581 05:05:54 build_karaf_tests200: FAIL ✖ in 7.3 seconds 05:05:54 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:05:54 buildlighty: freeze> python -m pip freeze --all 05:05:54 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:54 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 05:05:54 ./build.sh: 7: mvn: not found 05:05:54 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 05:05:54 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3609 05:05:55 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 05:05:55 [INFO] Once installed this environment will be reused. 05:05:55 [INFO] This may take a few minutes... 05:05:55 buildlighty: FAIL ✖ in 6.84 seconds 05:05:55 sims: freeze> python -m pip freeze --all 05:05:55 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:05:55 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 05:05:55 Using lighynode version 22.1.0.7 05:05:55 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 05:05:59 trim trailing whitespace.................................................Passed 05:05:59 fix end of files.........................................................Passed 05:06:00 check for added large files..............................................Passed 05:06:00 check for merge conflicts................................................Passed 05:06:00 check for case conflicts.................................................Passed 05:06:00 check json...............................................................Passed 05:06:00 mixed line ending........................................................Passed 05:06:00 Tabs remover.............................................................Passed 05:06:01 autopep8.................................................................Passed 05:06:03 perltidy.................................................................Passed 05:06:03 ShellCheck v0.11.0.......................................................Passed 05:06:09 prettier.................................................................Passed 05:06:10 yamllint.................................................................Passed 05:06:10 sims: OK ✔ in 10.13 seconds 05:06:10 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 05:06:11 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 05:06:11 [INFO] Once installed this environment will be reused. 05:06:11 [INFO] This may take a few minutes... 05:06:20 gitlint..................................................................Passed 05:06:44 pre-commit: OK ✔ in 59.29 seconds 05:06:44 testsPCE: freeze> python -m pip freeze --all 05:06:44 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 05:06:44 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 05:06:44 pytest -q transportpce_tests/pce/test01_pce.py 05:08:45 EEEEEEEEEEEEEEEEEEEE [100%] 05:08:48 ==================================== ERRORS ==================================== 05:08:48 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 05:08:48 05:08:48 cls = 05:08:48 05:08:48 @classmethod 05:08:48 def setUpClass(cls): 05:08:48 # pylint: disable=bare-except 05:08:48 sample_files_parsed = False 05:08:48 time.sleep(20) 05:08:48 try: 05:08:48 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:08:48 "..", "..", "sample_configs", "honeynode-topo.json") 05:08:48 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 05:08:48 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 05:08:48 05:08:48 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:08:48 "..", "..", "sample_configs", "NW-simple-topology.json") 05:08:48 05:08:48 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 05:08:48 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 05:08:48 05:08:48 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:08:48 "..", "..", "sample_configs", "NW-for-test-5-4.json") 05:08:48 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 05:08:48 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 05:08:48 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:08:48 "..", "..", "sample_configs", "pce_portmapping_221.json") 05:08:48 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 05:08:48 cls.port_mapping_data = port_mapping.read() 05:08:48 sample_files_parsed = True 05:08:48 except PermissionError as err: 05:08:48 print("Permission Error when trying to read sample files\n", err) 05:08:48 sys.exit(2) 05:08:48 except FileNotFoundError as err: 05:08:48 print("File Not found Error when trying to read sample files\n", err) 05:08:48 sys.exit(2) 05:08:48 except: 05:08:48 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 05:08:48 sys.exit(2) 05:08:48 finally: 05:08:48 if sample_files_parsed: 05:08:48 print("sample files content loaded") 05:08:48 05:08:48 > cls.processes = test_utils.start_tpce() 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 05:08:48 transportpce_tests/pce/test01_pce.py:93: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 def start_tpce(): 05:08:48 if 'NO_ODL_STARTUP' in os.environ: 05:08:48 print('No OpenDaylight instance to start!') 05:08:48 return [] 05:08:48 print('starting OpenDaylight...') 05:08:48 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:08:48 process = start_lighty() 05:08:48 else: 05:08:48 process = start_karaf() 05:08:48 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:08:48 print('OpenDaylight started !') 05:08:48 else: 05:08:48 print('OpenDaylight failed to start !') 05:08:48 shutdown_process(process) 05:08:48 for pid in process_list: 05:08:48 shutdown_process(pid) 05:08:48 > sys.exit(1) 05:08:48 E SystemExit: 1 05:08:48 05:08:48 transportpce_tests/common/test_utils.py:234: SystemExit 05:08:48 ---------------------------- Captured stdout setup ----------------------------- 05:08:48 sample files content loaded 05:08:48 starting OpenDaylight... 05:08:48 starting KARAF (karaf) TransportPCE build... 05:08:48 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:08:48 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73380> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8bc40> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8b420> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73380> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8b1a0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8b6a0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816e6c9da0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73ec0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73380> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73ec0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816e6c9940> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8b1a0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73380> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816e6ca980> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed88540> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed73380> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816e6ca2a0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed8b1a0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 05:08:48 05:08:48 cls = 05:08:48 func = . at 0x7f816ed882c0> 05:08:48 when = 'setup' 05:08:48 reraise = (, ) 05:08:48 05:08:48 @classmethod 05:08:48 def from_call( 05:08:48 cls, 05:08:48 func: Callable[[], TResult], 05:08:48 when: Literal["collect", "setup", "call", "teardown"], 05:08:48 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:08:48 ) -> CallInfo[TResult]: 05:08:48 """Call func, wrapping the result in a CallInfo. 05:08:48 05:08:48 :param func: 05:08:48 The function to call. Called without arguments. 05:08:48 :type func: Callable[[], _pytest.runner.TResult] 05:08:48 :param when: 05:08:48 The phase in which the function is called. 05:08:48 :param reraise: 05:08:48 Exception or exceptions that shall propagate if raised by the 05:08:48 function, instead of being wrapped in the CallInfo. 05:08:48 """ 05:08:48 excinfo = None 05:08:48 instant = timing.Instant() 05:08:48 try: 05:08:48 > result: TResult | None = func() 05:08:48 ^^^^^^ 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:08:48 lambda: runtest_hook(item=item, **kwds), 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:08:48 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:08:48 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:08:48 yield 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:08:48 return (yield) 05:08:48 ^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:08:48 item.session._setupstate.setup(item) 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:08:48 col.setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:08:48 super().setup() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:08:48 self._request._fillfixtures() 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:08:48 item.funcargs[argname] = self.getfixturevalue(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:08:48 fixturedef = self._get_active_fixturedef(argname) 05:08:48 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:08:48 fixturedef.execute(request=subrequest) 05:08:48 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:08:48 05:08:48 self = 05:08:48 request = > 05:08:48 05:08:48 def execute(self, request: SubRequest) -> FixtureValue: 05:08:48 """Return the value of this fixture, executing it if not cached.""" 05:08:48 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:08:48 # This needs to be done before checking if we have a cached value, since 05:08:48 # if a dependent fixture has their cache invalidated, e.g. due to 05:08:48 # parametrization, they finalize themselves and fixtures depending on it 05:08:48 # (which will likely include this fixture) setting `self.cached_result = None`. 05:08:48 # See #4871 05:08:48 requested_fixtures_that_should_finalize_us = [] 05:08:48 for argname in self.argnames: 05:08:48 fixturedef = request._get_active_fixturedef(argname) 05:08:48 # Saves requested fixtures in a list so we later can add our finalizer 05:08:48 # to them, ensuring that if a requested fixture gets torn down we get torn 05:08:48 # down first. This is generally handled by SetupState, but still currently 05:08:48 # needed when this fixture is not parametrized but depends on a parametrized 05:08:48 # fixture. 05:08:48 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:08:48 05:08:48 # Check for (and return) cached value/exception. 05:08:48 if self.cached_result is not None: 05:08:48 request_cache_key = self.cache_key(request) 05:08:48 cache_key = self.cached_result[1] 05:08:48 try: 05:08:48 # Attempt to make a normal == check: this might fail for objects 05:08:48 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:08:48 cache_hit = bool(request_cache_key == cache_key) 05:08:48 except (ValueError, RuntimeError): 05:08:48 # If the comparison raises, use 'is' as fallback. 05:08:48 cache_hit = request_cache_key is cache_key 05:08:48 05:08:48 if cache_hit: 05:08:48 if self.cached_result[2] is not None: 05:08:48 exc, exc_tb = self.cached_result[2] 05:08:48 raise exc.with_traceback(exc_tb) 05:08:48 else: 05:08:48 return self.cached_result[0] 05:08:48 # We have a previous but differently parametrized fixture instance 05:08:48 # so we need to tear it down before creating a new one. 05:08:48 self.finish(request) 05:08:48 assert self.cached_result is None 05:08:48 05:08:48 # Add finalizer to requested fixtures we saved previously. 05:08:48 # We make sure to do this after checking for cached value to avoid 05:08:48 # adding our finalizer multiple times. (#12135) 05:08:48 finalizer = functools.partial(self.finish, request=request) 05:08:48 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:08:48 parent_fixture.addfinalizer(finalizer) 05:08:48 05:08:48 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:08:48 # which is executed last. 05:08:48 > assert not self._finalizers 05:08:48 ^^^^^^^^^^^^^^^^^^^^ 05:08:48 E AssertionError 05:08:48 05:08:48 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:08:48 =========================== short test summary info ============================ 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 05:08:48 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 05:08:48 20 errors in 124.10s (0:02:04) 05:08:48 testsPCE: exit 1 (124.41 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4164 05:08:49 testsPCE: FAIL ✖ in 2 minutes 54.53 seconds 05:08:49 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:08:58 tests_tapi: freeze> python -m pip freeze --all 05:08:58 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:08:58 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 05:08:58 using environment variables from ./karaf221.env 05:08:58 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 05:10:38 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:10:47 ==================================== ERRORS ==================================== 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 05:10:47 @classmethod 05:10:47 def setUpClass(cls): 05:10:47 cls.init_failed = False 05:10:47 os.environ['JAVA_MIN_MEM'] = '1024M' 05:10:47 os.environ['JAVA_MAX_MEM'] = '4096M' 05:10:47 > cls.processes = test_utils.start_tpce() 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 05:10:47 transportpce_tests/tapi/test01_abstracted_topology.py:148: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 def start_tpce(): 05:10:47 if 'NO_ODL_STARTUP' in os.environ: 05:10:47 print('No OpenDaylight instance to start!') 05:10:47 return [] 05:10:47 print('starting OpenDaylight...') 05:10:47 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:10:47 process = start_lighty() 05:10:47 else: 05:10:47 process = start_karaf() 05:10:47 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:10:47 print('OpenDaylight started !') 05:10:47 else: 05:10:47 print('OpenDaylight failed to start !') 05:10:47 shutdown_process(process) 05:10:47 for pid in process_list: 05:10:47 shutdown_process(pid) 05:10:47 > sys.exit(1) 05:10:47 E SystemExit: 1 05:10:47 05:10:47 transportpce_tests/common/test_utils.py:234: SystemExit 05:10:47 ---------------------------- Captured stdout setup ----------------------------- 05:10:47 starting OpenDaylight... 05:10:47 starting KARAF (karaf221) TransportPCE build... 05:10:47 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8b740> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cfdfc40> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90e8d7060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cfdf100> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf89b20> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cfdf6a0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a2a0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6020> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf89a80> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc65c0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a480> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cfdf100> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a480> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90f687060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5bc0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5bc0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc4d60> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc47c0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6ac0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5300> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6ac0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5a80> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6fc0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5e40> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6020> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6340> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc6340> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc7240> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc7420> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc7560> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc63e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc5a80> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cf8a8e0> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 05:10:47 05:10:47 cls = 05:10:47 func = . at 0x7fa90cbc7060> 05:10:47 when = 'setup' 05:10:47 reraise = (, ) 05:10:47 05:10:47 @classmethod 05:10:47 def from_call( 05:10:47 cls, 05:10:47 func: Callable[[], TResult], 05:10:47 when: Literal["collect", "setup", "call", "teardown"], 05:10:47 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:10:47 ) -> CallInfo[TResult]: 05:10:47 """Call func, wrapping the result in a CallInfo. 05:10:47 05:10:47 :param func: 05:10:47 The function to call. Called without arguments. 05:10:47 :type func: Callable[[], _pytest.runner.TResult] 05:10:47 :param when: 05:10:47 The phase in which the function is called. 05:10:47 :param reraise: 05:10:47 Exception or exceptions that shall propagate if raised by the 05:10:47 function, instead of being wrapped in the CallInfo. 05:10:47 """ 05:10:47 excinfo = None 05:10:47 instant = timing.Instant() 05:10:47 try: 05:10:47 > result: TResult | None = func() 05:10:47 ^^^^^^ 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:10:47 lambda: runtest_hook(item=item, **kwds), 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:10:47 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:10:47 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:10:47 yield 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:10:47 return (yield) 05:10:47 ^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:10:47 item.session._setupstate.setup(item) 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:10:47 col.setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:10:47 super().setup() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:10:47 self._request._fillfixtures() 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:10:47 item.funcargs[argname] = self.getfixturevalue(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:10:47 fixturedef = self._get_active_fixturedef(argname) 05:10:47 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:10:47 fixturedef.execute(request=subrequest) 05:10:47 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:10:47 05:10:47 self = 05:10:47 request = > 05:10:47 05:10:47 def execute(self, request: SubRequest) -> FixtureValue: 05:10:47 """Return the value of this fixture, executing it if not cached.""" 05:10:47 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:10:47 # This needs to be done before checking if we have a cached value, since 05:10:47 # if a dependent fixture has their cache invalidated, e.g. due to 05:10:47 # parametrization, they finalize themselves and fixtures depending on it 05:10:47 # (which will likely include this fixture) setting `self.cached_result = None`. 05:10:47 # See #4871 05:10:47 requested_fixtures_that_should_finalize_us = [] 05:10:47 for argname in self.argnames: 05:10:47 fixturedef = request._get_active_fixturedef(argname) 05:10:47 # Saves requested fixtures in a list so we later can add our finalizer 05:10:47 # to them, ensuring that if a requested fixture gets torn down we get torn 05:10:47 # down first. This is generally handled by SetupState, but still currently 05:10:47 # needed when this fixture is not parametrized but depends on a parametrized 05:10:47 # fixture. 05:10:47 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:10:47 05:10:47 # Check for (and return) cached value/exception. 05:10:47 if self.cached_result is not None: 05:10:47 request_cache_key = self.cache_key(request) 05:10:47 cache_key = self.cached_result[1] 05:10:47 try: 05:10:47 # Attempt to make a normal == check: this might fail for objects 05:10:47 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:10:47 cache_hit = bool(request_cache_key == cache_key) 05:10:47 except (ValueError, RuntimeError): 05:10:47 # If the comparison raises, use 'is' as fallback. 05:10:47 cache_hit = request_cache_key is cache_key 05:10:47 05:10:47 if cache_hit: 05:10:47 if self.cached_result[2] is not None: 05:10:47 exc, exc_tb = self.cached_result[2] 05:10:47 raise exc.with_traceback(exc_tb) 05:10:47 else: 05:10:47 return self.cached_result[0] 05:10:47 # We have a previous but differently parametrized fixture instance 05:10:47 # so we need to tear it down before creating a new one. 05:10:47 self.finish(request) 05:10:47 assert self.cached_result is None 05:10:47 05:10:47 # Add finalizer to requested fixtures we saved previously. 05:10:47 # We make sure to do this after checking for cached value to avoid 05:10:47 # adding our finalizer multiple times. (#12135) 05:10:47 finalizer = functools.partial(self.finish, request=request) 05:10:47 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:10:47 parent_fixture.addfinalizer(finalizer) 05:10:47 05:10:47 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:10:47 # which is executed last. 05:10:47 > assert not self._finalizers 05:10:47 ^^^^^^^^^^^^^^^^^^^^ 05:10:47 E AssertionError 05:10:47 05:10:47 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:10:47 =========================== short test summary info ============================ 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 05:10:47 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 05:10:47 51 errors in 109.19s (0:01:49) 05:10:47 tests_tapi: exit 1 (109.48 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4784 05:10:48 tests_tapi: FAIL ✖ in 1 minute 58.89 seconds 05:10:48 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:10:48 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:10:57 tests200: freeze> python -m pip freeze --all 05:10:57 tests221: freeze> python -m pip freeze --all 05:10:57 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:10:57 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 05:10:57 using environment variables from ./karafoc200.env 05:10:57 pytest -q transportpce_tests/oc200/test01_portmapping.py 05:10:57 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:10:57 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 05:10:57 using environment variables from ./karaf221.env 05:10:57 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 05:12:38 EEEEEEEEEEEEEEEEEEE [100%] 05:12:39 ==================================== ERRORS ==================================== 05:12:39 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 05:12:39 05:12:39 cls = 05:12:39 05:12:39 @classmethod 05:12:39 def setUpClass(cls): 05:12:39 > cls.processes = test_utils.start_tpce() 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 05:12:39 transportpce_tests/oc200/test01_portmapping.py:29: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 def start_tpce(): 05:12:39 if 'NO_ODL_STARTUP' in os.environ: 05:12:39 print('No OpenDaylight instance to start!') 05:12:39 return [] 05:12:39 print('starting OpenDaylight...') 05:12:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:12:39 process = start_lighty() 05:12:39 else: 05:12:39 process = start_karaf() 05:12:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:12:39 print('OpenDaylight started !') 05:12:39 else: 05:12:39 print('OpenDaylight failed to start !') 05:12:39 shutdown_process(process) 05:12:39 for pid in process_list: 05:12:39 shutdown_process(pid) 05:12:39 > sys.exit(1) 05:12:39 E SystemExit: 1 05:12:39 05:12:39 transportpce_tests/common/test_utils.py:234: SystemExit 05:12:39 ---------------------------- Captured stdout setup ----------------------------- 05:12:39 starting OpenDaylight... 05:12:39 starting KARAF (karafoc200) TransportPCE build... 05:12:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54df61f420> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54dcf33ec0> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54de6d3600> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54dcf0f740> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54df61f420> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54de6d3600> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54dcf33880> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54dcf336a0> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 05:12:39 05:12:39 cls = 05:12:39 func = . at 0x7f54dcf33600> 05:12:39 when = 'setup' 05:12:39 reraise = (, ) 05:12:39 05:12:39 @classmethod 05:12:39 def from_call( 05:12:39 cls, 05:12:39 func: Callable[[], TResult], 05:12:39 when: Literal["collect", "setup", "call", "teardown"], 05:12:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:39 ) -> CallInfo[TResult]: 05:12:39 """Call func, wrapping the result in a CallInfo. 05:12:39 05:12:39 :param func: 05:12:39 The function to call. Called without arguments. 05:12:39 :type func: Callable[[], _pytest.runner.TResult] 05:12:39 :param when: 05:12:39 The phase in which the function is called. 05:12:39 :param reraise: 05:12:39 Exception or exceptions that shall propagate if raised by the 05:12:39 function, instead of being wrapped in the CallInfo. 05:12:39 """ 05:12:39 excinfo = None 05:12:39 instant = timing.Instant() 05:12:39 try: 05:12:39 > result: TResult | None = func() 05:12:39 ^^^^^^ 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:39 lambda: runtest_hook(item=item, **kwds), 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:39 yield 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:39 return (yield) 05:12:39 ^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:39 item.session._setupstate.setup(item) 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:39 col.setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:39 super().setup() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:39 self._request._fillfixtures() 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:39 fixturedef = self._get_active_fixturedef(argname) 05:12:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:39 fixturedef.execute(request=subrequest) 05:12:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:39 05:12:39 self = 05:12:39 request = > 05:12:39 05:12:39 def execute(self, request: SubRequest) -> FixtureValue: 05:12:39 """Return the value of this fixture, executing it if not cached.""" 05:12:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:39 # This needs to be done before checking if we have a cached value, since 05:12:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:39 # parametrization, they finalize themselves and fixtures depending on it 05:12:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:39 # See #4871 05:12:39 requested_fixtures_that_should_finalize_us = [] 05:12:39 for argname in self.argnames: 05:12:39 fixturedef = request._get_active_fixturedef(argname) 05:12:39 # Saves requested fixtures in a list so we later can add our finalizer 05:12:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:39 # down first. This is generally handled by SetupState, but still currently 05:12:39 # needed when this fixture is not parametrized but depends on a parametrized 05:12:39 # fixture. 05:12:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:39 05:12:39 # Check for (and return) cached value/exception. 05:12:39 if self.cached_result is not None: 05:12:39 request_cache_key = self.cache_key(request) 05:12:39 cache_key = self.cached_result[1] 05:12:39 try: 05:12:39 # Attempt to make a normal == check: this might fail for objects 05:12:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:39 cache_hit = bool(request_cache_key == cache_key) 05:12:39 except (ValueError, RuntimeError): 05:12:39 # If the comparison raises, use 'is' as fallback. 05:12:39 cache_hit = request_cache_key is cache_key 05:12:39 05:12:39 if cache_hit: 05:12:39 if self.cached_result[2] is not None: 05:12:39 exc, exc_tb = self.cached_result[2] 05:12:39 raise exc.with_traceback(exc_tb) 05:12:39 else: 05:12:39 return self.cached_result[0] 05:12:39 # We have a previous but differently parametrized fixture instance 05:12:39 # so we need to tear it down before creating a new one. 05:12:39 self.finish(request) 05:12:39 assert self.cached_result is None 05:12:39 05:12:39 # Add finalizer to requested fixtures we saved previously. 05:12:39 # We make sure to do this after checking for cached value to avoid 05:12:39 # adding our finalizer multiple times. (#12135) 05:12:39 finalizer = functools.partial(self.finish, request=request) 05:12:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:39 parent_fixture.addfinalizer(finalizer) 05:12:39 05:12:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:39 # which is executed last. 05:12:39 > assert not self._finalizers 05:12:39 ^^^^^^^^^^^^^^^^^^^^ 05:12:39 E AssertionError 05:12:39 05:12:39 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:39 =========================== short test summary info ============================ 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 05:12:39 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 05:12:39 10 errors in 101.89s (0:01:41) 05:12:39 tests200: exit 1 (102.14 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4927 05:12:39 Etests200: FAIL ✖ in 1 minute 51.76 seconds 05:12:39 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:12:39 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:12:44 ==================================== ERRORS ==================================== 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 05:12:44 05:12:44 cls = 05:12:44 05:12:44 @classmethod 05:12:44 def setUpClass(cls): 05:12:44 > cls.processes = test_utils.start_tpce() 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 05:12:44 transportpce_tests/2.2.1/test01_portmapping.py:33: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 def start_tpce(): 05:12:44 if 'NO_ODL_STARTUP' in os.environ: 05:12:44 print('No OpenDaylight instance to start!') 05:12:44 return [] 05:12:44 print('starting OpenDaylight...') 05:12:44 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:12:44 process = start_lighty() 05:12:44 else: 05:12:44 process = start_karaf() 05:12:44 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:12:44 print('OpenDaylight started !') 05:12:44 else: 05:12:44 print('OpenDaylight failed to start !') 05:12:44 shutdown_process(process) 05:12:44 for pid in process_list: 05:12:44 shutdown_process(pid) 05:12:44 > sys.exit(1) 05:12:44 E SystemExit: 1 05:12:44 05:12:44 transportpce_tests/common/test_utils.py:234: SystemExit 05:12:44 ---------------------------- Captured stdout setup ----------------------------- 05:12:44 starting OpenDaylight... 05:12:44 starting KARAF (karaf221) TransportPCE build... 05:12:44 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:12:44 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5f100> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5f2e0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1912267240> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5f100> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5d120> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9ed40> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5d120> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9ff60> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5d120> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9e520> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9fd80> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5d120> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5e0c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5df80> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb5df80> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f1911477060> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fbd84a0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fbd9800> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fbd8540> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fbd96c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 05:12:44 05:12:44 cls = 05:12:44 func = . at 0x7f190fb9f9c0> 05:12:44 when = 'setup' 05:12:44 reraise = (, ) 05:12:44 05:12:44 @classmethod 05:12:44 def from_call( 05:12:44 cls, 05:12:44 func: Callable[[], TResult], 05:12:44 when: Literal["collect", "setup", "call", "teardown"], 05:12:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:12:44 ) -> CallInfo[TResult]: 05:12:44 """Call func, wrapping the result in a CallInfo. 05:12:44 05:12:44 :param func: 05:12:44 The function to call. Called without arguments. 05:12:44 :type func: Callable[[], _pytest.runner.TResult] 05:12:44 :param when: 05:12:44 The phase in which the function is called. 05:12:44 :param reraise: 05:12:44 Exception or exceptions that shall propagate if raised by the 05:12:44 function, instead of being wrapped in the CallInfo. 05:12:44 """ 05:12:44 excinfo = None 05:12:44 instant = timing.Instant() 05:12:44 try: 05:12:44 > result: TResult | None = func() 05:12:44 ^^^^^^ 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:12:44 lambda: runtest_hook(item=item, **kwds), 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:12:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:12:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:12:44 yield 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:12:44 return (yield) 05:12:44 ^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:12:44 item.session._setupstate.setup(item) 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:12:44 col.setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:12:44 super().setup() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:12:44 self._request._fillfixtures() 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:12:44 item.funcargs[argname] = self.getfixturevalue(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:12:44 fixturedef = self._get_active_fixturedef(argname) 05:12:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:12:44 fixturedef.execute(request=subrequest) 05:12:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:12:44 05:12:44 self = 05:12:44 request = > 05:12:44 05:12:44 def execute(self, request: SubRequest) -> FixtureValue: 05:12:44 """Return the value of this fixture, executing it if not cached.""" 05:12:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:12:44 # This needs to be done before checking if we have a cached value, since 05:12:44 # if a dependent fixture has their cache invalidated, e.g. due to 05:12:44 # parametrization, they finalize themselves and fixtures depending on it 05:12:44 # (which will likely include this fixture) setting `self.cached_result = None`. 05:12:44 # See #4871 05:12:44 requested_fixtures_that_should_finalize_us = [] 05:12:44 for argname in self.argnames: 05:12:44 fixturedef = request._get_active_fixturedef(argname) 05:12:44 # Saves requested fixtures in a list so we later can add our finalizer 05:12:44 # to them, ensuring that if a requested fixture gets torn down we get torn 05:12:44 # down first. This is generally handled by SetupState, but still currently 05:12:44 # needed when this fixture is not parametrized but depends on a parametrized 05:12:44 # fixture. 05:12:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:12:44 05:12:44 # Check for (and return) cached value/exception. 05:12:44 if self.cached_result is not None: 05:12:44 request_cache_key = self.cache_key(request) 05:12:44 cache_key = self.cached_result[1] 05:12:44 try: 05:12:44 # Attempt to make a normal == check: this might fail for objects 05:12:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:12:44 cache_hit = bool(request_cache_key == cache_key) 05:12:44 except (ValueError, RuntimeError): 05:12:44 # If the comparison raises, use 'is' as fallback. 05:12:44 cache_hit = request_cache_key is cache_key 05:12:44 05:12:44 if cache_hit: 05:12:44 if self.cached_result[2] is not None: 05:12:44 exc, exc_tb = self.cached_result[2] 05:12:44 raise exc.with_traceback(exc_tb) 05:12:44 else: 05:12:44 return self.cached_result[0] 05:12:44 # We have a previous but differently parametrized fixture instance 05:12:44 # so we need to tear it down before creating a new one. 05:12:44 self.finish(request) 05:12:44 assert self.cached_result is None 05:12:44 05:12:44 # Add finalizer to requested fixtures we saved previously. 05:12:44 # We make sure to do this after checking for cached value to avoid 05:12:44 # adding our finalizer multiple times. (#12135) 05:12:44 finalizer = functools.partial(self.finish, request=request) 05:12:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:12:44 parent_fixture.addfinalizer(finalizer) 05:12:44 05:12:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:12:44 # which is executed last. 05:12:44 > assert not self._finalizers 05:12:44 ^^^^^^^^^^^^^^^^^^^^ 05:12:44 E AssertionError 05:12:44 05:12:44 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:12:44 =========================== short test summary info ============================ 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 05:12:44 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 05:12:44 35 errors in 106.38s (0:01:46) 05:12:44 tests221: exit 1 (106.66 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4938 05:12:44 tests221: FAIL ✖ in 1 minute 56.33 seconds 05:12:44 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:12:48 tests71: freeze> python -m pip freeze --all 05:12:48 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:12:48 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 05:12:48 using environment variables from ./karaf71.env 05:12:48 pytest -q transportpce_tests/7.1/test01_portmapping.py 05:12:50 tests_hybrid: freeze> python -m pip freeze --all 05:12:50 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:12:50 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 05:12:50 using environment variables from ./karaf221.env 05:12:50 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 05:14:29 EEEEEEEEEEEEE [100%] 05:14:31 ==================================== ERRORS ==================================== 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 05:14:31 05:14:31 cls = 05:14:31 05:14:31 @classmethod 05:14:31 def setUpClass(cls): 05:14:31 > cls.processes = test_utils.start_tpce() 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 05:14:31 transportpce_tests/7.1/test01_portmapping.py:32: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 def start_tpce(): 05:14:31 if 'NO_ODL_STARTUP' in os.environ: 05:14:31 print('No OpenDaylight instance to start!') 05:14:31 return [] 05:14:31 print('starting OpenDaylight...') 05:14:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:14:31 process = start_lighty() 05:14:31 else: 05:14:31 process = start_karaf() 05:14:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:14:31 print('OpenDaylight started !') 05:14:31 else: 05:14:31 print('OpenDaylight failed to start !') 05:14:31 shutdown_process(process) 05:14:31 for pid in process_list: 05:14:31 shutdown_process(pid) 05:14:31 > sys.exit(1) 05:14:31 E SystemExit: 1 05:14:31 05:14:31 transportpce_tests/common/test_utils.py:234: SystemExit 05:14:31 ---------------------------- Captured stdout setup ----------------------------- 05:14:31 starting OpenDaylight... 05:14:31 starting KARAF (karaf71) TransportPCE build... 05:14:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c3ddb4c0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c3a60> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c2feafc0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c3ddb2e0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c37e0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c2feafc0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c3a60> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c1120> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c37e0> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c3600> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 05:14:31 05:14:31 cls = 05:14:31 func = . at 0x7fe8c16c1120> 05:14:31 when = 'setup' 05:14:31 reraise = (, ) 05:14:31 05:14:31 @classmethod 05:14:31 def from_call( 05:14:31 cls, 05:14:31 func: Callable[[], TResult], 05:14:31 when: Literal["collect", "setup", "call", "teardown"], 05:14:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:31 ) -> CallInfo[TResult]: 05:14:31 """Call func, wrapping the result in a CallInfo. 05:14:31 05:14:31 :param func: 05:14:31 The function to call. Called without arguments. 05:14:31 :type func: Callable[[], _pytest.runner.TResult] 05:14:31 :param when: 05:14:31 The phase in which the function is called. 05:14:31 :param reraise: 05:14:31 Exception or exceptions that shall propagate if raised by the 05:14:31 function, instead of being wrapped in the CallInfo. 05:14:31 """ 05:14:31 excinfo = None 05:14:31 instant = timing.Instant() 05:14:31 try: 05:14:31 > result: TResult | None = func() 05:14:31 ^^^^^^ 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:31 lambda: runtest_hook(item=item, **kwds), 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:31 yield 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:31 return (yield) 05:14:31 ^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:31 item.session._setupstate.setup(item) 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:31 col.setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:31 super().setup() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:31 self._request._fillfixtures() 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:31 fixturedef = self._get_active_fixturedef(argname) 05:14:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:31 fixturedef.execute(request=subrequest) 05:14:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:31 05:14:31 self = 05:14:31 request = > 05:14:31 05:14:31 def execute(self, request: SubRequest) -> FixtureValue: 05:14:31 """Return the value of this fixture, executing it if not cached.""" 05:14:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:31 # This needs to be done before checking if we have a cached value, since 05:14:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:31 # parametrization, they finalize themselves and fixtures depending on it 05:14:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:31 # See #4871 05:14:31 requested_fixtures_that_should_finalize_us = [] 05:14:31 for argname in self.argnames: 05:14:31 fixturedef = request._get_active_fixturedef(argname) 05:14:31 # Saves requested fixtures in a list so we later can add our finalizer 05:14:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:31 # down first. This is generally handled by SetupState, but still currently 05:14:31 # needed when this fixture is not parametrized but depends on a parametrized 05:14:31 # fixture. 05:14:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:31 05:14:31 # Check for (and return) cached value/exception. 05:14:31 if self.cached_result is not None: 05:14:31 request_cache_key = self.cache_key(request) 05:14:31 cache_key = self.cached_result[1] 05:14:31 try: 05:14:31 # Attempt to make a normal == check: this might fail for objects 05:14:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:31 cache_hit = bool(request_cache_key == cache_key) 05:14:31 except (ValueError, RuntimeError): 05:14:31 # If the comparison raises, use 'is' as fallback. 05:14:31 cache_hit = request_cache_key is cache_key 05:14:31 05:14:31 if cache_hit: 05:14:31 if self.cached_result[2] is not None: 05:14:31 exc, exc_tb = self.cached_result[2] 05:14:31 raise exc.with_traceback(exc_tb) 05:14:31 else: 05:14:31 return self.cached_result[0] 05:14:31 # We have a previous but differently parametrized fixture instance 05:14:31 # so we need to tear it down before creating a new one. 05:14:31 self.finish(request) 05:14:31 assert self.cached_result is None 05:14:31 05:14:31 # Add finalizer to requested fixtures we saved previously. 05:14:31 # We make sure to do this after checking for cached value to avoid 05:14:31 # adding our finalizer multiple times. (#12135) 05:14:31 finalizer = functools.partial(self.finish, request=request) 05:14:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:31 parent_fixture.addfinalizer(finalizer) 05:14:31 05:14:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:31 # which is executed last. 05:14:31 > assert not self._finalizers 05:14:31 ^^^^^^^^^^^^^^^^^^^^ 05:14:31 E AssertionError 05:14:31 05:14:31 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:31 =========================== short test summary info ============================ 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 05:14:31 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 05:14:31 12 errors in 102.36s (0:01:42) 05:14:31 tests71: exit 1 (102.65 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5062 05:14:31 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:14:39 ==================================== ERRORS ==================================== 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 05:14:39 05:14:39 cls = 05:14:39 05:14:39 @classmethod 05:14:39 def setUpClass(cls): 05:14:39 > cls.processes = test_utils.start_tpce() 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 05:14:39 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 def start_tpce(): 05:14:39 if 'NO_ODL_STARTUP' in os.environ: 05:14:39 print('No OpenDaylight instance to start!') 05:14:39 return [] 05:14:39 print('starting OpenDaylight...') 05:14:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:14:39 process = start_lighty() 05:14:39 else: 05:14:39 process = start_karaf() 05:14:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:14:39 print('OpenDaylight started !') 05:14:39 else: 05:14:39 print('OpenDaylight failed to start !') 05:14:39 shutdown_process(process) 05:14:39 for pid in process_list: 05:14:39 shutdown_process(pid) 05:14:39 > sys.exit(1) 05:14:39 E SystemExit: 1 05:14:39 05:14:39 transportpce_tests/common/test_utils.py:234: SystemExit 05:14:39 ---------------------------- Captured stdout setup ----------------------------- 05:14:39 starting OpenDaylight... 05:14:39 starting KARAF (karaf221) TransportPCE build... 05:14:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804ea20> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a3f60> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5eda742f20> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d440> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed998d3a0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d440> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2700> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2980> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2700> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d440> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed7a79940> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2700> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d440> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed7a79da0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d440> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d8a0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a28e0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed804d8a0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2d40> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a28e0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed80a2d40> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:39 # so we need to tear it down before creating a new one. 05:14:39 self.finish(request) 05:14:39 assert self.cached_result is None 05:14:39 05:14:39 # Add finalizer to requested fixtures we saved previously. 05:14:39 # We make sure to do this after checking for cached value to avoid 05:14:39 # adding our finalizer multiple times. (#12135) 05:14:39 finalizer = functools.partial(self.finish, request=request) 05:14:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:39 parent_fixture.addfinalizer(finalizer) 05:14:39 05:14:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:39 # which is executed last. 05:14:39 > assert not self._finalizers 05:14:39 ^^^^^^^^^^^^^^^^^^^^ 05:14:39 E AssertionError 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:39 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 05:14:39 05:14:39 cls = 05:14:39 func = . at 0x7f5ed7a7a0c0> 05:14:39 when = 'setup' 05:14:39 reraise = (, ) 05:14:39 05:14:39 @classmethod 05:14:39 def from_call( 05:14:39 cls, 05:14:39 func: Callable[[], TResult], 05:14:39 when: Literal["collect", "setup", "call", "teardown"], 05:14:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:39 ) -> CallInfo[TResult]: 05:14:39 """Call func, wrapping the result in a CallInfo. 05:14:39 05:14:39 :param func: 05:14:39 The function to call. Called without arguments. 05:14:39 :type func: Callable[[], _pytest.runner.TResult] 05:14:39 :param when: 05:14:39 The phase in which the function is called. 05:14:39 :param reraise: 05:14:39 Exception or exceptions that shall propagate if raised by the 05:14:39 function, instead of being wrapped in the CallInfo. 05:14:39 """ 05:14:39 excinfo = None 05:14:39 instant = timing.Instant() 05:14:39 try: 05:14:39 > result: TResult | None = func() 05:14:39 ^^^^^^ 05:14:39 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:39 lambda: runtest_hook(item=item, **kwds), 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:39 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:39 yield 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:39 return (yield) 05:14:39 ^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:39 item.session._setupstate.setup(item) 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:39 col.setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:39 super().setup() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:39 self._request._fillfixtures() 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:39 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:39 fixturedef = self._get_active_fixturedef(argname) 05:14:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:39 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:39 fixturedef.execute(request=subrequest) 05:14:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:39 05:14:39 self = 05:14:39 request = > 05:14:39 05:14:39 def execute(self, request: SubRequest) -> FixtureValue: 05:14:39 """Return the value of this fixture, executing it if not cached.""" 05:14:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:39 # This needs to be done before checking if we have a cached value, since 05:14:39 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:39 # parametrization, they finalize themselves and fixtures depending on it 05:14:39 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:39 # See #4871 05:14:39 requested_fixtures_that_should_finalize_us = [] 05:14:39 for argname in self.argnames: 05:14:39 fixturedef = request._get_active_fixturedef(argname) 05:14:39 # Saves requested fixtures in a list so we later can add our finalizer 05:14:39 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:39 # down first. This is generally handled by SetupState, but still currently 05:14:39 # needed when this fixture is not parametrized but depends on a parametrized 05:14:39 # fixture. 05:14:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:39 05:14:39 # Check for (and return) cached value/exception. 05:14:39 if self.cached_result is not None: 05:14:39 request_cache_key = self.cache_key(request) 05:14:39 cache_key = self.cached_result[1] 05:14:39 try: 05:14:39 # Attempt to make a normal == check: this might fail for objects 05:14:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:39 cache_hit = bool(request_cache_key == cache_key) 05:14:39 except (ValueError, RuntimeError): 05:14:39 # If the comparison raises, use 'is' as fallback. 05:14:39 cache_hit = request_cache_key is cache_key 05:14:39 05:14:39 if cache_hit: 05:14:39 if self.cached_result[2] is not None: 05:14:39 exc, exc_tb = self.cached_result[2] 05:14:39 raise exc.with_traceback(exc_tb) 05:14:39 else: 05:14:39 return self.cached_result[0] 05:14:39 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a7a0c0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a78860> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79440> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79260> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a796c0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79800> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79d00> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79800> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79f80> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a78ea0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79a80> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79a80> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a7aa20> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a799e0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79bc0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a79f80> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a7a5c0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed80a2d40> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 05:14:40 05:14:40 cls = 05:14:40 func = . at 0x7f5ed7a7a2a0> 05:14:40 when = 'setup' 05:14:40 reraise = (, ) 05:14:40 05:14:40 @classmethod 05:14:40 def from_call( 05:14:40 cls, 05:14:40 func: Callable[[], TResult], 05:14:40 when: Literal["collect", "setup", "call", "teardown"], 05:14:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:14:40 ) -> CallInfo[TResult]: 05:14:40 """Call func, wrapping the result in a CallInfo. 05:14:40 05:14:40 :param func: 05:14:40 The function to call. Called without arguments. 05:14:40 :type func: Callable[[], _pytest.runner.TResult] 05:14:40 :param when: 05:14:40 The phase in which the function is called. 05:14:40 :param reraise: 05:14:40 Exception or exceptions that shall propagate if raised by the 05:14:40 function, instead of being wrapped in the CallInfo. 05:14:40 """ 05:14:40 excinfo = None 05:14:40 instant = timing.Instant() 05:14:40 try: 05:14:40 > result: TResult | None = func() 05:14:40 ^^^^^^ 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:14:40 lambda: runtest_hook(item=item, **kwds), 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:14:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:14:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:14:40 yield 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:14:40 return (yield) 05:14:40 ^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:14:40 item.session._setupstate.setup(item) 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:14:40 col.setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:14:40 super().setup() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:14:40 self._request._fillfixtures() 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:14:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:14:40 fixturedef = self._get_active_fixturedef(argname) 05:14:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:14:40 fixturedef.execute(request=subrequest) 05:14:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:14:40 05:14:40 self = 05:14:40 request = > 05:14:40 05:14:40 def execute(self, request: SubRequest) -> FixtureValue: 05:14:40 """Return the value of this fixture, executing it if not cached.""" 05:14:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:14:40 # This needs to be done before checking if we have a cached value, since 05:14:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:14:40 # parametrization, they finalize themselves and fixtures depending on it 05:14:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:14:40 # See #4871 05:14:40 requested_fixtures_that_should_finalize_us = [] 05:14:40 for argname in self.argnames: 05:14:40 fixturedef = request._get_active_fixturedef(argname) 05:14:40 # Saves requested fixtures in a list so we later can add our finalizer 05:14:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:14:40 # down first. This is generally handled by SetupState, but still currently 05:14:40 # needed when this fixture is not parametrized but depends on a parametrized 05:14:40 # fixture. 05:14:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:14:40 05:14:40 # Check for (and return) cached value/exception. 05:14:40 if self.cached_result is not None: 05:14:40 request_cache_key = self.cache_key(request) 05:14:40 cache_key = self.cached_result[1] 05:14:40 try: 05:14:40 # Attempt to make a normal == check: this might fail for objects 05:14:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:14:40 cache_hit = bool(request_cache_key == cache_key) 05:14:40 except (ValueError, RuntimeError): 05:14:40 # If the comparison raises, use 'is' as fallback. 05:14:40 cache_hit = request_cache_key is cache_key 05:14:40 05:14:40 if cache_hit: 05:14:40 if self.cached_result[2] is not None: 05:14:40 exc, exc_tb = self.cached_result[2] 05:14:40 raise exc.with_traceback(exc_tb) 05:14:40 else: 05:14:40 return self.cached_result[0] 05:14:40 # We have a previous but differently parametrized fixture instance 05:14:40 # so we need to tear it down before creating a new one. 05:14:40 self.finish(request) 05:14:40 assert self.cached_result is None 05:14:40 05:14:40 # Add finalizer to requested fixtures we saved previously. 05:14:40 # We make sure to do this after checking for cached value to avoid 05:14:40 # adding our finalizer multiple times. (#12135) 05:14:40 finalizer = functools.partial(self.finish, request=request) 05:14:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:14:40 parent_fixture.addfinalizer(finalizer) 05:14:40 05:14:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:14:40 # which is executed last. 05:14:40 > assert not self._finalizers 05:14:40 ^^^^^^^^^^^^^^^^^^^^ 05:14:40 E AssertionError 05:14:40 05:14:40 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:14:40 =========================== short test summary info ============================ 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 05:14:40 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 05:14:40 51 errors in 109.19s (0:01:49) 05:14:40 tests71: FAIL ✖ in 1 minute 51.7 seconds 05:14:40 tests_hybrid: exit 1 (109.48 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5077 05:14:40 buildcontroller: FAIL code 1 (9.21=setup[8.56]+cmd[0.66] seconds) 05:14:40 sims: OK (10.13=setup[7.08]+cmd[3.04] seconds) 05:14:40 testsPCE: FAIL code 1 (174.53=setup[50.12]+cmd[124.41] seconds) 05:14:40 build_karaf_tests221: FAIL code 127 (8.62=setup[8.62]+cmd[0.00] seconds) 05:14:40 tests_tapi: FAIL code 1 (118.89=setup[9.41]+cmd[109.48] seconds) 05:14:40 tests221: FAIL code 1 (116.33=setup[9.67]+cmd[106.66] seconds) 05:14:40 build_karaf_tests71: FAIL code 127 (7.20=setup[7.20]+cmd[0.00] seconds) 05:14:40 tests71: FAIL code 1 (111.70=setup[9.05]+cmd[102.65] seconds) 05:14:40 build_karaf_tests200: FAIL code 127 (7.30=setup[7.29]+cmd[0.01] seconds) 05:14:40 tests200: FAIL code 1 (111.76=setup[9.63]+cmd[102.14] seconds) 05:14:40 tests_hybrid: FAIL code 1 (115.92=setup[6.43]+cmd[109.48] seconds) 05:14:40 buildlighty: FAIL code 9 (6.84=setup[6.83]+cmd[0.01] seconds) 05:14:40 docs: OK (20.63=setup[18.15]+cmd[2.48] seconds) 05:14:40 docs-linkcheck: OK (22.95=setup[17.98]+cmd[4.97] seconds) 05:14:40 checkbashisms: OK (3.01=setup[1.85]+cmd[0.00,0.04,1.13] seconds) 05:14:40 pre-commit: OK (59.29=setup[3.21]+cmd[0.00,0.01,46.83,9.23] seconds) 05:14:40 pylint: FAIL code 1 (21.60=setup[4.62]+cmd[16.98] seconds) 05:14:40 evaluation failed :( (562.27 seconds) 05:14:40 + tox_status=1 05:14:40 + echo '---> Completed tox runs' 05:14:40 ---> Completed tox runs 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/build_karaf_tests200/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=build_karaf_tests200 05:14:40 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/build_karaf_tests221/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=build_karaf_tests221 05:14:40 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/build_karaf_tests71/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=build_karaf_tests71 05:14:40 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/buildcontroller/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=buildcontroller 05:14:40 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/buildlighty/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=buildlighty 05:14:40 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/checkbashisms/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=checkbashisms 05:14:40 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/docs-linkcheck/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=docs-linkcheck 05:14:40 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/docs/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=docs 05:14:40 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/pre-commit/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=pre-commit 05:14:40 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/pylint/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=pylint 05:14:40 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/sims/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=sims 05:14:40 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/tests200/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=tests200 05:14:40 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/tests221/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=tests221 05:14:40 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/tests71/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=tests71 05:14:40 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/testsPCE/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=testsPCE 05:14:40 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/tests_hybrid/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=tests_hybrid 05:14:40 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 05:14:40 + for i in .tox/*/log 05:14:40 ++ echo .tox/tests_tapi/log 05:14:40 ++ awk -F/ '{print $2}' 05:14:40 + tox_env=tests_tapi 05:14:40 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 05:14:40 + DOC_DIR=docs/_build/html 05:14:40 + [[ -d docs/_build/html ]] 05:14:40 + echo '---> Archiving generated docs' 05:14:40 ---> Archiving generated docs 05:14:40 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 05:14:40 + echo '---> tox-run.sh ends' 05:14:40 ---> tox-run.sh ends 05:14:40 + test 1 -eq 0 05:14:40 + exit 1 05:14:40 ++ '[' 1 = 1 ']' 05:14:40 ++ '[' -x /usr/bin/clear_console ']' 05:14:40 ++ /usr/bin/clear_console -q 05:14:40 Build step 'Execute shell' marked build as failure 05:14:40 $ ssh-agent -k 05:14:40 unset SSH_AUTH_SOCK; 05:14:40 unset SSH_AGENT_PID; 05:14:40 echo Agent pid 1570 killed; 05:14:40 [ssh-agent] Stopped. 05:14:40 [PostBuildScript] - [INFO] Executing post build scripts. 05:14:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3358518454627071109.sh 05:14:40 ---> sysstat.sh 05:14:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12551302724963852039.sh 05:14:40 ---> package-listing.sh 05:14:40 + '[' -f /etc/os-release ']' 05:14:40 + . /etc/os-release 05:14:40 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 05:14:40 ++ NAME=Ubuntu 05:14:40 ++ VERSION_ID=22.04 05:14:40 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 05:14:40 ++ VERSION_CODENAME=jammy 05:14:40 ++ ID=ubuntu 05:14:40 ++ ID_LIKE=debian 05:14:40 ++ HOME_URL=https://www.ubuntu.com/ 05:14:40 ++ SUPPORT_URL=https://help.ubuntu.com/ 05:14:40 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 05:14:40 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 05:14:40 ++ UBUNTU_CODENAME=jammy 05:14:40 + case " ${ID:-} ${ID_LIKE:-} " in 05:14:40 + OS_FAMILY=debian 05:14:40 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 05:14:40 + START_PACKAGES=/tmp/packages_start.txt 05:14:40 + END_PACKAGES=/tmp/packages_end.txt 05:14:40 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:14:40 + PACKAGES=/tmp/packages_start.txt 05:14:40 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 05:14:40 + PACKAGES=/tmp/packages_end.txt 05:14:40 + case "${OS_FAMILY}" in 05:14:40 + grep '^ii' 05:14:40 + dpkg -l 05:14:40 + '[' -f /tmp/packages_start.txt ']' 05:14:40 + '[' -f /tmp/packages_end.txt ']' 05:14:40 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:14:40 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 05:14:40 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 05:14:40 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 05:14:40 + exit 0 05:14:40 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1725965582073433703.sh 05:14:40 ---> capture-instance-metadata.sh 05:14:40 Setup pyenv: 05:14:40 system 05:14:40 3.8.20 05:14:40 3.9.20 05:14:40 3.10.15 05:14:40 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:14:40 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4UHk from file:/tmp/.os_lf_venv 05:14:40 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:14:42 lf-activate-venv(): INFO: Installing additional packages: lftools 05:14:52 lf-activate-venv(): INFO: Adding /tmp/venv-4UHk/bin to PATH 05:14:52 INFO: Running in OpenStack, capturing instance metadata 05:14:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins18058911792206036123.sh 05:14:53 provisioning config files... 05:14:53 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6219 05:14:53 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config12959367703055349349tmp 05:14:53 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 05:14:53 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 05:14:53 provisioning config files... 05:14:53 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 05:14:53 [EnvInject] - Injecting environment variables from a build step. 05:14:53 [EnvInject] - Injecting as environment variables the properties content 05:14:53 SERVER_ID=logs 05:14:53 05:14:53 [EnvInject] - Variables injected successfully. 05:14:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1231271648553300899.sh 05:14:53 ---> create-netrc.sh 05:14:53 WARN: Log server credential not found. 05:14:53 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13357881319870929496.sh 05:14:53 ---> python-tools-install.sh 05:14:53 Setup pyenv: 05:14:53 system 05:14:53 3.8.20 05:14:53 3.9.20 05:14:53 3.10.15 05:14:53 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:14:54 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4UHk from file:/tmp/.os_lf_venv 05:14:54 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:14:55 lf-activate-venv(): INFO: Installing additional packages: lftools 05:15:11 lf-activate-venv(): INFO: Adding /tmp/venv-4UHk/bin to PATH 05:15:11 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins13371735920676956469.sh 05:15:11 ---> uv-install.sh 05:15:11 uv 0.13.0 is already installed 05:15:11 uvx 0.13.0 (x86_64-unknown-linux-gnu) 05:15:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9332880526224590930.sh 05:15:11 ---> sudo-logs.sh 05:15:11 Archiving 'sudo' log.. 05:15:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6015228540226378668.sh 05:15:11 ---> job-cost.sh 05:15:11 INFO: Activating Python virtual environment... 05:15:11 Setup pyenv: 05:15:11 system 05:15:11 3.8.20 05:15:11 3.9.20 05:15:11 3.10.15 05:15:11 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:15:11 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4UHk from file:/tmp/.os_lf_venv 05:15:11 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:15:13 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 05:15:19 lf-activate-venv(): INFO: Adding /tmp/venv-4UHk/bin to PATH 05:15:19 INFO: No stack-cost file found 05:15:19 INFO: Instance uptime: 737s 05:15:19 INFO: Fetching instance metadata (attempt 1 of 3)... 05:15:19 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 05:15:19 INFO: Successfully fetched instance metadata 05:15:19 INFO: Instance type: v3-standard-4 05:15:19 INFO: Retrieving pricing info for: v3-standard-4 05:15:19 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 05:15:19 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=737 05:15:19 INFO: Successfully fetched Vexxhost pricing API 05:15:19 INFO: Retrieved cost: 0.11 05:15:20 INFO: Retrieved resource: v3-standard-4 05:15:20 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 05:15:20 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 05:15:20 INFO: Successfully archived job cost data 05:15:20 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6219,2026-10-13 05:15:20,v3-standard-4,737,0.11,0.00,FAILURE 05:15:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins10936566899277642712.sh 05:15:20 ---> logs-deploy.sh 05:15:20 Setup pyenv: 05:15:20 system 05:15:20 3.8.20 05:15:20 3.9.20 05:15:20 3.10.15 05:15:20 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:15:20 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-4UHk from file:/tmp/.os_lf_venv 05:15:20 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:15:22 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 05:15:30 lf-activate-venv(): INFO: Adding /tmp/venv-4UHk/bin to PATH 05:15:30 WARNING: Nexus logging server not set 05:15:30 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6219/ 05:15:30 INFO: archiving logs to S3 05:15:31 ---> uname -a: 05:15:31 Linux prd-ubuntu2204-docker-4c-16g-64790 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 05:15:31 05:15:31 05:15:31 ---> lscpu: 05:15:31 Architecture: x86_64 05:15:31 CPU op-mode(s): 32-bit, 64-bit 05:15:31 Address sizes: 40 bits physical, 48 bits virtual 05:15:31 Byte Order: Little Endian 05:15:31 CPU(s): 4 05:15:31 On-line CPU(s) list: 0-3 05:15:31 Vendor ID: AuthenticAMD 05:15:31 Model name: AMD EPYC-Rome Processor 05:15:31 CPU family: 23 05:15:31 Model: 49 05:15:31 Thread(s) per core: 1 05:15:31 Core(s) per socket: 1 05:15:31 Socket(s): 4 05:15:31 Stepping: 0 05:15:31 BogoMIPS: 5599.99 05:15:31 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 05:15:31 Virtualization: AMD-V 05:15:31 Hypervisor vendor: KVM 05:15:31 Virtualization type: full 05:15:31 L1d cache: 128 KiB (4 instances) 05:15:31 L1i cache: 128 KiB (4 instances) 05:15:31 L2 cache: 2 MiB (4 instances) 05:15:31 L3 cache: 64 MiB (4 instances) 05:15:31 NUMA node(s): 1 05:15:31 NUMA node0 CPU(s): 0-3 05:15:31 Vulnerability Gather data sampling: Not affected 05:15:31 Vulnerability Indirect target selection: Not affected 05:15:31 Vulnerability Itlb multihit: Not affected 05:15:31 Vulnerability L1tf: Not affected 05:15:31 Vulnerability Mds: Not affected 05:15:31 Vulnerability Meltdown: Not affected 05:15:31 Vulnerability Mmio stale data: Not affected 05:15:31 Vulnerability Reg file data sampling: Not affected 05:15:31 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 05:15:31 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 05:15:31 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 05:15:31 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 05:15:31 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 05:15:31 Vulnerability Srbds: Not affected 05:15:31 Vulnerability Tsa: Not affected 05:15:31 Vulnerability Tsx async abort: Not affected 05:15:31 Vulnerability Vmscape: Not affected 05:15:31 05:15:31 05:15:31 ---> nproc: 05:15:31 4 05:15:31 05:15:31 05:15:31 ---> df -h: 05:15:31 Filesystem Size Used Avail Use% Mounted on 05:15:31 tmpfs 1.6G 1.1M 1.6G 1% /run 05:15:31 /dev/vda1 78G 11G 67G 15% / 05:15:31 tmpfs 7.9G 0 7.9G 0% /dev/shm 05:15:31 tmpfs 5.0M 0 5.0M 0% /run/lock 05:15:31 /dev/vda15 105M 6.1M 99M 6% /boot/efi 05:15:31 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 05:15:31 05:15:31 05:15:31 ---> free -m: 05:15:31 total used free shared buff/cache available 05:15:31 Mem: 15989 700 9645 4 5643 14945 05:15:31 Swap: 1023 0 1023 05:15:31 05:15:31 05:15:31 ---> ip addr: 05:15:31 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 05:15:31 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 05:15:31 inet 127.0.0.1/8 scope host lo 05:15:31 valid_lft forever preferred_lft forever 05:15:31 inet6 ::1/128 scope host 05:15:31 valid_lft forever preferred_lft forever 05:15:31 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 05:15:31 link/ether fa:16:3e:9a:89:c9 brd ff:ff:ff:ff:ff:ff 05:15:31 altname enp0s3 05:15:31 inet 10.30.170.13/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 05:15:31 valid_lft 85659sec preferred_lft 85659sec 05:15:31 inet6 fe80::f816:3eff:fe9a:89c9/64 scope link 05:15:31 valid_lft forever preferred_lft forever 05:15:31 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 05:15:31 link/ether 2e:71:d3:58:ec:6e brd ff:ff:ff:ff:ff:ff 05:15:31 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 05:15:31 valid_lft forever preferred_lft forever 05:15:31 inet6 fe80::2c71:d3ff:fe58:ec6e/64 scope link 05:15:31 valid_lft forever preferred_lft forever 05:15:31 05:15:31 05:15:31 ---> sar -b -r -n DEV: 05:15:31 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64790) 10/13/26 _x86_64_ (4 CPU) 05:15:31 05:15:31 05:03:13 LINUX RESTART (4 CPU) 05:15:31 05:15:31 05:15:31 ---> sar -P ALL: 05:15:31 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64790) 10/13/26 _x86_64_ (4 CPU) 05:15:31 05:15:31 05:03:13 LINUX RESTART (4 CPU) 05:15:31 05:15:31 05:15:31