09:07:18 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/123807 09:07:18 Running as SYSTEM 09:07:18 [EnvInject] - Loading node environment variables. 09:07:18 Building remotely on prd-ubuntu2204-docker-4c-16g-32062 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 09:07:26 [ssh-agent] Looking for ssh-agent implementation... 09:07:26 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 09:07:26 $ ssh-agent 09:07:26 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXgE9CLe/agent.1556 09:07:26 SSH_AGENT_PID=1558 09:07:26 [ssh-agent] Started. 09:07:26 Running ssh-add (command line suppressed) 09:07:26 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_15250786567950093144.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_15250786567950093144.key) 09:07:26 [ssh-agent] Using credentials jenkins (jenkins-ssh) 09:07:26 The recommended git tool is: NONE 09:07:28 using credential jenkins-ssh 09:07:29 Wiping out workspace first. 09:07:29 Cloning the remote Git repository 09:07:29 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 09:07:29 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 09:07:29 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 09:07:29 > git --version # timeout=10 09:07:29 > git --version # 'git version 2.34.1' 09:07:29 using GIT_SSH to set credentials jenkins-ssh 09:07:29 Verifying host key using known hosts file, will automatically accept unseen keys 09:07:29 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 09:07:48 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 09:07:48 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 09:07:49 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 09:07:49 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 09:07:49 using GIT_SSH to set credentials jenkins-ssh 09:07:49 Verifying host key using known hosts file, will automatically accept unseen keys 09:07:49 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/07/123807/4 # timeout=10 09:07:50 > git rev-parse 21814716c17255c2d056d490cecb2218b30f98f6^{commit} # timeout=10 09:07:50 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 09:07:50 Checking out Revision 21814716c17255c2d056d490cecb2218b30f98f6 (refs/changes/07/123807/4) 09:07:50 > git config core.sparsecheckout # timeout=10 09:07:50 > git checkout -f 21814716c17255c2d056d490cecb2218b30f98f6 # timeout=10 09:07:51 Commit message: "tapi: fix virtual link mesh loop termination" 09:07:51 > git rev-parse FETCH_HEAD^{commit} # timeout=10 09:07:51 > git rev-list --no-walk f0ce172ed01145108be2f67478c144c19260f5cb # timeout=10 09:07:51 > git remote # timeout=10 09:07:51 > git submodule init # timeout=10 09:07:51 > git submodule sync # timeout=10 09:07:51 > git config --get remote.origin.url # timeout=10 09:07:51 > git submodule init # timeout=10 09:07:51 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 09:07:51 ERROR: No submodules found. 09:07:54 provisioning config files... 09:07:54 copy managed file [npmrc] to file:/home/jenkins/.npmrc 09:07:54 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 09:07:54 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9540339030314313091.sh 09:07:54 ---> python-tools-install.sh 09:07:54 Setup pyenv: 09:07:54 * system (set by /opt/pyenv/version) 09:07:54 * 3.8.20 (set by /opt/pyenv/version) 09:07:54 * 3.9.20 (set by /opt/pyenv/version) 09:07:54 3.10.15 09:07:54 3.11.10 09:07:59 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-r79L 09:07:59 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 09:07:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:07:59 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:08:05 lf-activate-venv(): INFO: Base packages installed successfully 09:08:05 lf-activate-venv(): INFO: Installing additional packages: lftools 09:08:34 lf-activate-venv(): INFO: Adding /tmp/venv-r79L/bin to PATH 09:08:34 Generating Requirements File 09:08:59 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. 09:08:59 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 09:08:59 Python 3.11.10 09:08:59 pip 26.1.2 from /tmp/venv-r79L/lib/python3.11/site-packages/pip (python 3.11) 09:09:00 aiohappyeyeballs==2.6.2 09:09:00 aiohttp==3.14.1 09:09:00 aiosignal==1.4.0 09:09:00 appdirs==1.4.4 09:09:00 argcomplete==3.7.0 09:09:00 aspy.yaml==1.3.0 09:09:00 attrs==26.1.0 09:09:00 autopage==0.6.0 09:09:00 beautifulsoup4==4.15.0 09:09:00 boto3==1.43.38 09:09:00 botocore==1.43.38 09:09:00 bs4==0.0.2 09:09:00 certifi==2026.6.17 09:09:00 cffi==2.0.0 09:09:00 cfgv==3.5.0 09:09:00 chardet==7.4.3 09:09:00 charset-normalizer==3.4.7 09:09:00 click==8.4.2 09:09:00 cliff==4.14.0 09:09:00 cmd2==4.0.0 09:09:00 cryptography==3.3.2 09:09:00 debtcollector==3.1.0 09:09:00 decorator==5.3.1 09:09:00 defusedxml==0.7.1 09:09:00 Deprecated==1.3.1 09:09:00 distlib==0.4.3 09:09:00 dnspython==2.8.0 09:09:00 docker==7.1.0 09:09:00 dogpile.cache==1.5.0 09:09:00 durationpy==0.10 09:09:00 email-validator==2.3.0 09:09:00 filelock==3.29.4 09:09:00 frozenlist==1.8.0 09:09:00 future==1.0.0 09:09:00 gitdb==4.0.12 09:09:00 GitPython==3.1.50 09:09:00 httplib2==0.30.2 09:09:00 identify==2.6.19 09:09:00 idna==3.18 09:09:00 importlib-resources==1.5.0 09:09:00 iso8601==2.1.0 09:09:00 Jinja2==3.1.6 09:09:00 jmespath==1.1.0 09:09:00 jsonpatch==1.33 09:09:00 jsonpointer==3.1.1 09:09:00 jsonschema==4.26.0 09:09:00 jsonschema-specifications==2025.9.1 09:09:00 keystoneauth1==5.14.0 09:09:00 kubernetes==36.0.2 09:09:00 lftools==0.37.22 09:09:00 lxml==6.1.1 09:09:00 markdown-it-py==4.2.0 09:09:00 MarkupSafe==3.0.3 09:09:00 mdurl==0.1.2 09:09:00 msgpack==1.2.1 09:09:00 multi_key_dict==2.0.3 09:09:00 multidict==6.7.1 09:09:00 munch==4.0.0 09:09:00 netaddr==1.3.0 09:09:00 niet==1.4.2 09:09:00 nodeenv==1.10.0 09:09:00 oauth2client==4.1.3 09:09:00 oauthlib==3.3.1 09:09:00 openstacksdk==4.17.0 09:09:00 os-service-types==1.8.2 09:09:00 osc-lib==4.6.0 09:09:00 oslo.config==10.5.0 09:09:00 oslo.context==6.4.0 09:09:00 oslo.i18n==6.8.0 09:09:00 oslo.log==8.2.0 09:09:00 oslo.serialization==5.10.0 09:09:00 oslo.utils==10.1.1 09:09:00 packaging==26.2 09:09:00 pbr==7.0.3 09:09:00 platformdirs==4.10.0 09:09:00 prettytable==3.18.0 09:09:00 prompt_toolkit==3.0.52 09:09:00 propcache==0.5.2 09:09:00 psutil==7.2.2 09:09:00 pyasn1==0.6.3 09:09:00 pyasn1_modules==0.4.2 09:09:00 pycparser==3.0 09:09:00 pygerrit2==2.0.15 09:09:00 PyGithub==2.9.1 09:09:00 Pygments==2.20.0 09:09:00 PyJWT==2.13.0 09:09:00 PyNaCl==1.6.2 09:09:00 pyparsing==2.4.7 09:09:00 pyperclip==1.11.0 09:09:00 pyrsistent==0.20.0 09:09:00 python-cinderclient==9.9.0 09:09:00 python-dateutil==2.9.0.post0 09:09:00 python-discovery==1.4.2 09:09:00 python-heatclient==5.2.0 09:09:00 python-jenkins==1.8.3 09:09:00 python-keystoneclient==5.8.0 09:09:00 python-magnumclient==4.10.0 09:09:00 python-openstackclient==10.1.0 09:09:00 python-swiftclient==4.10.0 09:09:00 PyYAML==6.0.3 09:09:00 referencing==0.37.0 09:09:00 requests==2.34.2 09:09:00 requests-oauthlib==2.0.0 09:09:00 rfc3986==2.0.0 09:09:00 rich==15.0.0 09:09:00 rich-argparse==1.8.0 09:09:00 rpds-py==2026.6.3 09:09:00 rsa==4.9.1 09:09:00 ruamel.yaml==0.19.1 09:09:00 ruamel.yaml.clib==0.2.15 09:09:00 s3transfer==0.19.0 09:09:00 simplejson==4.1.1 09:09:00 six==1.17.0 09:09:00 smmap==5.0.3 09:09:00 soupsieve==2.8.4 09:09:00 stevedore==5.8.0 09:09:00 tabulate==0.10.0 09:09:00 toml==0.10.2 09:09:00 tomlkit==0.15.0 09:09:00 tqdm==4.68.3 09:09:00 typing_extensions==4.15.0 09:09:00 urllib3==1.26.20 09:09:00 virtualenv==21.5.1 09:09:00 wcwidth==0.8.2 09:09:00 websocket-client==1.9.0 09:09:00 wrapt==2.2.2 09:09:00 xdg==6.0.0 09:09:00 xmltodict==1.0.4 09:09:00 yarl==1.24.2 09:09:00 yq==3.4.3 09:09:00 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins6035477559455944491.sh 09:09:00 ---> uv-install.sh 09:09:00 Installing uv/uvx (latest) using shell installer 09:09:00 2026-07-01 09:09:00 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71233/71233] -> "/tmp/uv-install-QIgC1y.sh" [1] 09:09:00 downloading uv 0.11.26 x86_64-unknown-linux-gnu 09:09:01 installing to /home/jenkins/.local/bin 09:09:01 uv 09:09:01 uvx 09:09:01 everything's installed! 09:09:01 09:09:01 To add $HOME/.local/bin to your PATH, either restart your shell or run: 09:09:01 09:09:01 source $HOME/.local/bin/env (sh, bash, zsh) 09:09:01 source $HOME/.local/bin/env.fish (fish) 09:09:01 Adding install location to PATH 09:09:01 ---> Validating uv/uvx install 09:09:01 uvx 0.11.26 (x86_64-unknown-linux-gnu) 09:09:01 [EnvInject] - Injecting environment variables from a build step. 09:09:01 [EnvInject] - Injecting as environment variables the properties content 09:09:01 PYTHON=python3 09:09:01 09:09:01 [EnvInject] - Variables injected successfully. 09:09:01 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins13853354064470512724.sh 09:09:01 ---> tox-install.sh 09:09:01 + source /home/jenkins/lf-env.sh 09:09:01 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:09:01 ++ mktemp -d /tmp/venv-XXXX 09:09:01 + lf_venv=/tmp/venv-XseI 09:09:01 + local venv_file=/tmp/.os_lf_venv 09:09:01 + local python=python3 09:09:01 + local options 09:09:01 + local set_path=true 09:09:01 + local install_args= 09:09:01 ++ 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 09:09:01 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:09:01 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:09:01 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:09:01 + true 09:09:01 + case $1 in 09:09:01 + venv_file=/tmp/.toxenv 09:09:01 + shift 2 09:09:01 + true 09:09:01 + case $1 in 09:09:01 + shift 09:09:01 + break 09:09:01 + case $python in 09:09:01 + local pkg_list= 09:09:01 + [[ -d /opt/pyenv ]] 09:09:01 + echo 'Setup pyenv:' 09:09:01 Setup pyenv: 09:09:01 + export PYENV_ROOT=/opt/pyenv 09:09:01 + PYENV_ROOT=/opt/pyenv 09:09:01 + 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 09:09:01 + 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 09:09:01 + pyenv versions 09:09:01 system 09:09:01 3.8.20 09:09:01 3.9.20 09:09:01 3.10.15 09:09:01 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:09:01 + command -v pyenv 09:09:01 ++ pyenv init - --no-rehash 09:09:01 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:09:01 for i in ${!paths[@]}; do 09:09:01 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:09:01 fi; done; 09:09:01 echo "${paths[*]}"'\'')" 09:09:01 export PATH="/opt/pyenv/shims:${PATH}" 09:09:01 export PYENV_SHELL=bash 09:09:01 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:09:01 pyenv() { 09:09:01 local command 09:09:01 command="${1:-}" 09:09:01 if [ "$#" -gt 0 ]; then 09:09:01 shift 09:09:01 fi 09:09:01 09:09:01 case "$command" in 09:09:01 rehash|shell) 09:09:01 eval "$(pyenv "sh-$command" "$@")" 09:09:01 ;; 09:09:01 *) 09:09:01 command pyenv "$command" "$@" 09:09:01 ;; 09:09:01 esac 09:09:01 }' 09:09:01 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:09:01 for i in ${!paths[@]}; do 09:09:01 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:09:01 fi; done; 09:09:01 echo "${paths[*]}"' 09:09:01 ++ 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 09:09:01 ++ 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 09:09:01 ++ 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 09:09:01 ++ export PYENV_SHELL=bash 09:09:01 ++ PYENV_SHELL=bash 09:09:01 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:09:01 +++ complete -F _pyenv pyenv 09:09:01 ++ lf-pyver python3 09:09:01 ++ local py_version_xy=python3 09:09:01 ++ local py_version_xyz= 09:09:01 ++ pyenv versions 09:09:01 ++ local command 09:09:01 ++ command=versions 09:09:01 ++ '[' 1 -gt 0 ']' 09:09:01 ++ awk '{ print $1 }' 09:09:01 ++ shift 09:09:01 ++ case "$command" in 09:09:01 ++ command pyenv versions 09:09:01 ++ grep -E '^[0-9.]*[0-9]$' 09:09:01 ++ sed 's/^[ *]* //' 09:09:01 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:09:01 +++ grep '^3' /tmp/.pyenv_versions 09:09:01 +++ sort -V 09:09:01 +++ tail -n 1 09:09:01 ++ py_version_xyz=3.11.10 09:09:01 ++ [[ -z 3.11.10 ]] 09:09:01 ++ echo 3.11.10 09:09:01 ++ return 0 09:09:01 + pyenv local 3.11.10 09:09:01 + local command 09:09:01 + command=local 09:09:01 + '[' 2 -gt 0 ']' 09:09:01 + shift 09:09:01 + case "$command" in 09:09:01 + command pyenv local 3.11.10 09:09:01 + for arg in "$@" 09:09:01 + case $arg in 09:09:01 + pkg_list+='tox ' 09:09:01 + for arg in "$@" 09:09:01 + case $arg in 09:09:01 + pkg_list+='virtualenv ' 09:09:01 + for arg in "$@" 09:09:01 + case $arg in 09:09:01 + pkg_list+='urllib3~=1.26.15 ' 09:09:01 + [[ -f /tmp/.toxenv ]] 09:09:01 + [[ ! -f /tmp/.toxenv ]] 09:09:01 + [[ -n '' ]] 09:09:01 + python3 -m venv /tmp/venv-XseI 09:09:05 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-XseI' 09:09:05 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-XseI 09:09:05 + echo /tmp/venv-XseI 09:09:05 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 09:09:05 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 09:09:05 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 09:09:05 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:09:05 + local 'pip_opts=--upgrade --quiet' 09:09:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 09:09:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 09:09:05 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 09:09:05 + [[ -n '' ]] 09:09:05 + [[ -n '' ]] 09:09:05 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 09:09:05 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:09:05 + /tmp/venv-XseI/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 09:09:09 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 09:09:09 lf-activate-venv(): INFO: Base packages installed successfully 09:09:09 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:09:09 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 09:09:09 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 09:09:09 + /tmp/venv-XseI/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 09:09:11 + type python3 09:09:11 + true 09:09:11 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-XseI/bin to PATH' 09:09:11 lf-activate-venv(): INFO: Adding /tmp/venv-XseI/bin to PATH 09:09:11 + PATH=/tmp/venv-XseI/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 09:09:11 + return 0 09:09:11 + python3 --version 09:09:11 Python 3.11.10 09:09:11 + python3 -m pip --version 09:09:11 pip 26.1.2 from /tmp/venv-XseI/lib/python3.11/site-packages/pip (python 3.11) 09:09:11 + python3 -m pip freeze 09:09:11 cachetools==7.1.4 09:09:11 colorama==0.4.6 09:09:11 distlib==0.4.3 09:09:11 filelock==3.29.4 09:09:11 packaging==26.2 09:09:11 platformdirs==4.10.0 09:09:11 pluggy==1.6.0 09:09:11 pyproject-api==1.10.1 09:09:11 python-discovery==1.4.2 09:09:11 tomli_w==1.2.0 09:09:11 tox==4.56.1 09:09:11 urllib3==1.26.20 09:09:11 virtualenv==21.5.1 09:09:11 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins15486974218155326468.sh 09:09:11 [EnvInject] - Injecting environment variables from a build step. 09:09:11 [EnvInject] - Injecting as environment variables the properties content 09:09:11 PARALLEL=True 09:09:11 09:09:11 [EnvInject] - Variables injected successfully. 09:09:11 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins6522687871578637943.sh 09:09:12 ---> tox-run.sh 09:09:12 + 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 09:09:12 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:09:12 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:09:12 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 09:09:12 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 09:09:12 + source /home/jenkins/lf-env.sh 09:09:12 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 09:09:12 ++ mktemp -d /tmp/venv-XXXX 09:09:12 + lf_venv=/tmp/venv-qqcS 09:09:12 + local venv_file=/tmp/.os_lf_venv 09:09:12 + local python=python3 09:09:12 + local options 09:09:12 + local set_path=true 09:09:12 + local install_args= 09:09:12 ++ 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 09:09:12 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:09:12 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 09:09:12 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 09:09:12 + true 09:09:12 + case $1 in 09:09:12 + venv_file=/tmp/.toxenv 09:09:12 + shift 2 09:09:12 + true 09:09:12 + case $1 in 09:09:12 + shift 09:09:12 + break 09:09:12 + case $python in 09:09:12 + local pkg_list= 09:09:12 + [[ -d /opt/pyenv ]] 09:09:12 + echo 'Setup pyenv:' 09:09:12 Setup pyenv: 09:09:12 + export PYENV_ROOT=/opt/pyenv 09:09:12 + PYENV_ROOT=/opt/pyenv 09:09:12 + 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 09:09:12 + 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 09:09:12 + pyenv versions 09:09:12 system 09:09:12 3.8.20 09:09:12 3.9.20 09:09:12 3.10.15 09:09:12 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:09:12 + command -v pyenv 09:09:12 ++ pyenv init - --no-rehash 09:09:12 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 09:09:12 for i in ${!paths[@]}; do 09:09:12 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 09:09:12 fi; done; 09:09:12 echo "${paths[*]}"'\'')" 09:09:12 export PATH="/opt/pyenv/shims:${PATH}" 09:09:12 export PYENV_SHELL=bash 09:09:12 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 09:09:12 pyenv() { 09:09:12 local command 09:09:12 command="${1:-}" 09:09:12 if [ "$#" -gt 0 ]; then 09:09:12 shift 09:09:12 fi 09:09:12 09:09:12 case "$command" in 09:09:12 rehash|shell) 09:09:12 eval "$(pyenv "sh-$command" "$@")" 09:09:12 ;; 09:09:12 *) 09:09:12 command pyenv "$command" "$@" 09:09:12 ;; 09:09:12 esac 09:09:12 }' 09:09:12 +++ bash --norc -ec 'IFS=:; paths=($PATH); 09:09:12 for i in ${!paths[@]}; do 09:09:12 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 09:09:12 fi; done; 09:09:12 echo "${paths[*]}"' 09:09:12 ++ 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 09:09:12 ++ 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 09:09:12 ++ 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 09:09:12 ++ export PYENV_SHELL=bash 09:09:12 ++ PYENV_SHELL=bash 09:09:12 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 09:09:12 +++ complete -F _pyenv pyenv 09:09:12 ++ lf-pyver python3 09:09:12 ++ local py_version_xy=python3 09:09:12 ++ local py_version_xyz= 09:09:12 ++ pyenv versions 09:09:12 ++ local command 09:09:12 ++ command=versions 09:09:12 ++ '[' 1 -gt 0 ']' 09:09:12 ++ shift 09:09:12 ++ case "$command" in 09:09:12 ++ awk '{ print $1 }' 09:09:12 ++ command pyenv versions 09:09:12 ++ sed 's/^[ *]* //' 09:09:12 ++ grep -E '^[0-9.]*[0-9]$' 09:09:12 ++ [[ ! -s /tmp/.pyenv_versions ]] 09:09:12 +++ grep '^3' /tmp/.pyenv_versions 09:09:12 +++ sort -V 09:09:12 +++ tail -n 1 09:09:12 ++ py_version_xyz=3.11.10 09:09:12 ++ [[ -z 3.11.10 ]] 09:09:12 ++ echo 3.11.10 09:09:12 ++ return 0 09:09:12 + pyenv local 3.11.10 09:09:12 + local command 09:09:12 + command=local 09:09:12 + '[' 2 -gt 0 ']' 09:09:12 + shift 09:09:12 + case "$command" in 09:09:12 + command pyenv local 3.11.10 09:09:12 + for arg in "$@" 09:09:12 + case $arg in 09:09:12 + pkg_list+='tox ' 09:09:12 + for arg in "$@" 09:09:12 + case $arg in 09:09:12 + pkg_list+='virtualenv ' 09:09:12 + for arg in "$@" 09:09:12 + case $arg in 09:09:12 + pkg_list+='urllib3~=1.26.15 ' 09:09:12 + [[ -f /tmp/.toxenv ]] 09:09:12 ++ cat /tmp/.toxenv 09:09:12 + lf_venv=/tmp/venv-XseI 09:09:12 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XseI from' file:/tmp/.toxenv 09:09:12 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-XseI from file:/tmp/.toxenv 09:09:12 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 09:09:12 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:09:12 + local 'pip_opts=--upgrade --quiet' 09:09:12 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 09:09:12 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 09:09:12 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 09:09:12 + [[ -n '' ]] 09:09:12 + [[ -n '' ]] 09:09:12 + echo 'lf-activate-venv(): INFO: Attempting to install with network-safe options...' 09:09:12 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:09:12 + /tmp/venv-XseI/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 09:09:13 + echo 'lf-activate-venv(): INFO: Base packages installed successfully' 09:09:13 lf-activate-venv(): INFO: Base packages installed successfully 09:09:13 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 09:09:13 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 09:09:13 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 09:09:13 + /tmp/venv-XseI/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 09:09:14 + type python3 09:09:14 + true 09:09:14 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-XseI/bin to PATH' 09:09:14 lf-activate-venv(): INFO: Adding /tmp/venv-XseI/bin to PATH 09:09:14 + PATH=/tmp/venv-XseI/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 09:09:14 + return 0 09:09:14 + [[ -d /opt/pyenv ]] 09:09:14 + echo '---> Setting up pyenv' 09:09:14 ---> Setting up pyenv 09:09:14 + export PYENV_ROOT=/opt/pyenv 09:09:14 + PYENV_ROOT=/opt/pyenv 09:09:14 + export PATH=/opt/pyenv/bin:/tmp/venv-XseI/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 09:09:14 + PATH=/opt/pyenv/bin:/tmp/venv-XseI/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 09:09:14 ++ pwd 09:09:14 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 09:09:14 + export PYTHONPATH 09:09:14 + export TOX_TESTENV_PASSENV=PYTHONPATH 09:09:14 + TOX_TESTENV_PASSENV=PYTHONPATH 09:09:14 + tox --version 09:09:14 4.56.1 from /tmp/venv-XseI/lib/python3.11/site-packages/tox/__init__.py 09:09:14 + PARALLEL=True 09:09:14 + TOX_OPTIONS_LIST= 09:09:14 + [[ -n '' ]] 09:09:14 + case ${PARALLEL,,} in 09:09:14 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 09:09:14 + tox --parallel auto --parallel-live 09:09:14 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 09:09:16 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 09:09:16 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 09:09:16 checkbashisms: freeze> python -m pip freeze --all 09:09:16 docs: install_deps> python -I -m pip install -r docs/requirements.txt 09:09:17 checkbashisms: pip==26.1.2,setuptools==82.0.1 09:09:17 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:09:17 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)' 09:09:17 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 09:09:18 checkbashisms: OK ✔ in 3.52 seconds 09:09:18 pre-commit: install_deps> python -I -m pip install pre-commit 09:09:21 pre-commit: freeze> python -m pip freeze --all 09:09:21 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==3.29.4,identify==2.6.19,nodeenv==1.10.0,pip==26.1.2,platformdirs==4.10.0,pre_commit==4.6.0,python-discovery==1.4.2,PyYAML==6.0.3,setuptools==82.0.1,virtualenv==21.5.1 09:09:21 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 09:09:21 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)' 09:09:21 /usr/bin/cpan 09:09:21 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 09:09:21 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 09:09:21 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 09:09:22 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 09:09:22 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:09:22 buildcontroller: freeze> python -m pip freeze --all 09:09:23 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 09:09:23 buildcontroller: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:09:23 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 09:09:23 + update-java-alternatives -l 09:09:23 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 09:09:23 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 09:09:23 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 09:09:23 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 09:09:23 update-alternatives: error: no alternatives for jaotc 09:09:23 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 09:09:23 update-alternatives: error: no alternatives for rmic 09:09:23 + java -version 09:09:23 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 09:09:23 21 09:09:23 + JAVA_VER=21 09:09:23 + echo 21 09:09:23 + javac -version 09:09:23 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 09:09:23 21 09:09:23 ok, java is 21 or newer 09:09:23 + JAVAC_VER=21 09:09:23 + echo 21 09:09:23 + [ 21 -ge 21 ] 09:09:23 + [ 21 -ge 21 ] 09:09:23 + echo ok, java is 21 or newer 09:09:23 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 09:09:23 2026-07-01 09:09:23 URL:https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz [9278065/9278065] -> "/tmp/apache-maven-3.9.16-bin.tar.gz" [1] 09:09:23 + sudo mkdir -p /opt 09:09:23 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 09:09:24 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 09:09:24 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 09:09:24 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 09:09:24 + mvn --version 09:09:24 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 09:09:24 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 09:09:24 Maven home: /opt/maven 09:09:24 Java version: 21.0.10, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 09:09:24 Default locale: en, platform encoding: UTF-8 09:09:24 OS name: "linux", version: "5.15.0-174-generic", arch: "amd64", family: "unix" 09:09:24 NOTE: Picked up JDK_JAVA_OPTIONS: 09:09:24 --add-opens=java.base/java.io=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.lang=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.net=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.nio=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.util=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:09:24 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:09:24 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:09:24 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:09:24 -Xlog:disable 09:09:25 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 09:09:25 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 09:09:25 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 09:09:25 [INFO] Once installed this environment will be reused. 09:09:25 [INFO] This may take a few minutes... 09:09:32 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 09:09:32 [INFO] Once installed this environment will be reused. 09:09:32 [INFO] This may take a few minutes... 09:09:39 [INFO] Installing environment for https://github.com/hhatto/autopep8. 09:09:39 [INFO] Once installed this environment will be reused. 09:09:39 [INFO] This may take a few minutes... 09:09:42 docs-linkcheck: freeze> python -m pip freeze --all 09:09:42 docs: freeze> python -m pip freeze --all 09:09:42 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,blockdiag==3.0.0,certifi==2026.6.17,charset-normalizer==3.4.7,contourpy==1.3.3,cycler==0.12.1,docutils==0.21.2,fonttools==4.63.0,funcparserlib==2.0.0a0,future==1.0.0,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==3.2.0,kiwisolver==1.5.0,lfdocs_conf==0.10.0,MarkupSafe==3.0.3,matplotlib==3.11.0,numpy==2.4.6,nwdiag==3.0.0,packaging==26.2,pillow==12.2.0,pip==26.1.2,Pygments==2.20.0,pyparsing==3.3.2,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.3,requests==2.34.2,requests-file==1.5.1,roman-numerals==4.1.0,roman-numerals-py==4.1.0,seqdiag==3.0.0,setuptools==82.0.1,six==1.17.0,snowballstemmer==3.1.1,Sphinx==8.2.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-tabs==3.5.0,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.7.0,webcolors==25.10.0 09:09:42 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 09:09:43 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,blockdiag==3.0.0,certifi==2026.6.17,charset-normalizer==3.4.7,contourpy==1.3.3,cycler==0.12.1,docutils==0.21.2,fonttools==4.63.0,funcparserlib==2.0.0a0,future==1.0.0,idna==3.18,imagesize==2.0.0,Jinja2==3.1.6,jsonschema==3.2.0,kiwisolver==1.5.0,lfdocs_conf==0.10.0,MarkupSafe==3.0.3,matplotlib==3.11.0,numpy==2.4.6,nwdiag==3.0.0,packaging==26.2,pillow==12.2.0,pip==26.1.2,Pygments==2.20.0,pyparsing==3.3.2,pyrsistent==0.20.0,python-dateutil==2.9.0.post0,PyYAML==6.0.3,requests==2.34.2,requests-file==1.5.1,roman-numerals==4.1.0,roman-numerals-py==4.1.0,seqdiag==3.0.0,setuptools==82.0.1,six==1.17.0,snowballstemmer==3.1.1,Sphinx==8.2.3,sphinx-bootstrap-theme==0.8.1,sphinx-data-viewer==0.1.5,sphinx-tabs==3.5.0,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-blockdiag==3.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-needs==0.7.9,sphinxcontrib-nwdiag==2.0.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-seqdiag==3.0.0,sphinxcontrib-serializinghtml==2.0.0,sphinxcontrib-swaggerdoc==0.1.7,urllib3==2.7.0,webcolors==25.10.0 09:09:43 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 09:09:44 [INFO] Installing environment for https://github.com/perltidy/perltidy. 09:09:44 [INFO] Once installed this environment will be reused. 09:09:44 [INFO] This may take a few minutes... 09:09:47 docs: OK ✔ in 31.99 seconds 09:09:47 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 09:09:50 docs-linkcheck: OK ✔ in 32.23 seconds 09:09:50 pylint: freeze> python -m pip freeze --all 09:09:50 pylint: astroid==4.0.4,dill==0.4.1,isort==8.0.1,mccabe==0.7.0,pip==26.1.2,platformdirs==4.10.0,pylint==4.0.6,setuptools==82.0.1,tomlkit==0.15.0 09:09:50 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}$' '{}' + 09:09:56 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 09:09:56 [INFO] Once installed this environment will be reused. 09:09:56 [INFO] This may take a few minutes... 09:10:01 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 09:10:01 [INFO] Once installed this environment will be reused. 09:10:01 [INFO] This may take a few minutes... 09:10:06 trim trailing whitespace.................................................Passed 09:10:06 fix end of files.........................................................Passed 09:10:07 check for added large files..............................................Passed 09:10:07 check for merge conflicts................................................Passed 09:10:07 check for case conflicts.................................................Passed 09:10:07 check json...............................................................Passed 09:10:07 mixed line ending........................................................Passed 09:10:07 Tabs remover.............................................................Passed 09:10:08 autopep8.................................................................Passed 09:10:11 perltidy.................................................................Passed 09:10:12 ShellCheck v0.11.0.......................................................Passed 09:10:17 prettier.................................................................Passed 09:10:19 yamllint.................................................................Passed 09:10:19 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 09:10:20 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 09:10:20 [INFO] Once installed this environment will be reused. 09:10:20 [INFO] This may take a few minutes... 09:10:23 09:10:23 ------------------------------------ 09:10:23 Your code has been rated at 10.00/10 09:10:23 09:10:31 gitlint..................................................................Passed 09:10:32 [ERROR] COMPILATION ERROR : 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[39,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[40,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[72,20] cannot find symbol 09:10:32 symbol: class McCapability 09:10:32 location: class org.opendaylight.transportpce.pce.networkanalyzer.PceTapiLinkUnidirTest 09:10:32 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.15.0:testCompile (default-testCompile) on project transportpce-pce: Compilation failure: Compilation failure: 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[39,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[40,61] package org.opendaylight.transportpce.pce.node.mccapabilities does not exist 09:10:32 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceTapiLinkUnidirTest.java:[72,20] cannot find symbol 09:10:32 [ERROR] symbol: class McCapability 09:10:32 [ERROR] location: class org.opendaylight.transportpce.pce.networkanalyzer.PceTapiLinkUnidirTest 09:10:32 [ERROR] -> [Help 1] 09:10:32 [ERROR] 09:10:32 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:10:32 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:10:32 [ERROR] 09:10:32 [ERROR] For more information about the errors and possible solutions, please read the following articles: 09:10:32 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 09:10:32 [ERROR] 09:10:32 [ERROR] After correcting the problems, you can resume the build with the command 09:10:32 [ERROR] mvn -rf :transportpce-pce 09:10:32 pylint: OK ✔ in 39.81 seconds 09:10:32 pre-commit: OK ✔ in 1 minute 12.78 seconds 09:10:32 buildcontroller: exit 1 (68.98 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2775 09:10:33 buildcontroller: FAIL ✖ in 1 minute 17.35 seconds 09:10:33 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 09:10:33 build_karaf_tests121: 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 09:10:33 build_karaf_tests190: 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 09:10:33 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 09:10:39 build_karaf_tests221: freeze> python -m pip freeze --all 09:10:39 build_karaf_tests71: freeze> python -m pip freeze --all 09:10:39 build_karaf_tests121: freeze> python -m pip freeze --all 09:10:39 build_karaf_tests190: freeze> python -m pip freeze --all 09:10:39 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:10:39 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:10:39 build karaf in karaf221 with ./karaf221.env 09:10:39 NOTE: Picked up JDK_JAVA_OPTIONS: 09:10:39 --add-opens=java.base/java.io=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.lang=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.net=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.nio=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.util=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:10:39 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:10:39 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:10:39 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:10:39 -Xlog:disable 09:10:40 build_karaf_tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:10:40 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:10:40 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:10:40 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:10:40 build karaf in karaf71 with ./karaf71.env 09:10:40 build karaf in karaf121 with ./karaf121.env 09:10:40 build_karaf_tests190: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:10:40 build_karaf_tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 09:10:40 build karaf in karafoc with ./karafoc.env 09:10:40 NOTE: Picked up JDK_JAVA_OPTIONS: 09:10:40 --add-opens=java.base/java.io=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.net=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:10:40 -Xlog:disable 09:10:40 NOTE: Picked up JDK_JAVA_OPTIONS: 09:10:40 --add-opens=java.base/java.io=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.net=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:10:40 -Xlog:disable 09:10:40 NOTE: Picked up JDK_JAVA_OPTIONS: 09:10:40 --add-opens=java.base/java.io=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.net=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.nio.file=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.jar=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.stream=ALL-UNNAMED 09:10:40 --add-opens=java.base/java.util.zip=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 09:10:40 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 09:10:40 -Xlog:disable 09:11:01 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:13.0.0-SNAPSHOT 09:11:01 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.0.0-SNAPSHOT (runtime) 09:11:01 [ERROR] Could not find artifact org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 09:11:01 [ERROR] -> [Help 1] 09:11:01 [ERROR] 09:11:01 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 09:11:01 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 09:11:01 [ERROR] 09:11:01 [ERROR] For more information about the errors and possible solutions, please read the following articles: 09:11:01 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 09:11:01 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 09:11:01 build_karaf_tests221: exit 127 (21.56 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4250 09:11:01 build_karaf_tests221: FAIL ✖ in 29.2 seconds 09:11:01 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 09:11:18 buildlighty: freeze> python -m pip freeze --all 09:11:18 buildlighty: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:11:18 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 09:11:18 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 09:11:44 build_karaf_tests190: OK ✔ in 1 minute 11.51 seconds 09:11:44 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 09:11:48 build_karaf_tests121: OK ✔ in 1 minute 15.73 seconds 09:11:48 build_karaf_tests71: OK ✔ in 1 minute 15.87 seconds 09:11:48 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 09:11:54 sims: freeze> python -m pip freeze --all 09:11:54 sims: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:11:54 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 09:11:54 Using lighynode version 22.1.0.6 09:11:54 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 09:12:33 buildlighty: OK ✔ in 54.6 seconds 09:12:33 sims: OK ✔ in 14.7 seconds 09:12:33 testsPCE: freeze> python -m pip freeze --all 09:12:33 testsPCE: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,click==8.4.2,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.63.0,gnpy4tpce==2.4.7,idna==3.18,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.0,lxml==6.1.1,MarkupSafe==3.0.3,matplotlib==3.11.0,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.2,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.2.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pyparsing==3.3.2,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.2,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.7.0,Werkzeug==2.0.3,xlrd==1.2.0 09:12:33 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 09:12:33 pytest -q transportpce_tests/pce/test01_pce.py 09:14:34 EEEEEEEEEEEEEEEEEEEE [100%] 09:14:38 ==================================== ERRORS ==================================== 09:14:38 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 09:14:38 09:14:38 cls = 09:14:38 09:14:38 @classmethod 09:14:38 def setUpClass(cls): 09:14:38 # pylint: disable=bare-except 09:14:38 sample_files_parsed = False 09:14:38 time.sleep(20) 09:14:38 try: 09:14:38 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 09:14:38 "..", "..", "sample_configs", "honeynode-topo.json") 09:14:38 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 09:14:38 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 09:14:38 09:14:38 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 09:14:38 "..", "..", "sample_configs", "NW-simple-topology.json") 09:14:38 09:14:38 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 09:14:38 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 09:14:38 09:14:38 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 09:14:38 "..", "..", "sample_configs", "NW-for-test-5-4.json") 09:14:38 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 09:14:38 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 09:14:38 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 09:14:38 "..", "..", "sample_configs", "pce_portmapping_121.json") 09:14:38 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 09:14:38 cls.port_mapping_data = port_mapping.read() 09:14:38 sample_files_parsed = True 09:14:38 except PermissionError as err: 09:14:38 print("Permission Error when trying to read sample files\n", err) 09:14:38 sys.exit(2) 09:14:38 except FileNotFoundError as err: 09:14:38 print("File Not found Error when trying to read sample files\n", err) 09:14:38 sys.exit(2) 09:14:38 except: 09:14:38 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 09:14:38 sys.exit(2) 09:14:38 finally: 09:14:38 if sample_files_parsed: 09:14:38 print("sample files content loaded") 09:14:38 09:14:38 > cls.processes = test_utils.start_tpce() 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 09:14:38 transportpce_tests/pce/test01_pce.py:93: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 def start_tpce(): 09:14:38 if 'NO_ODL_STARTUP' in os.environ: 09:14:38 print('No OpenDaylight instance to start!') 09:14:38 return [] 09:14:38 print('starting OpenDaylight...') 09:14:38 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 09:14:38 process = start_lighty() 09:14:38 else: 09:14:38 process = start_karaf() 09:14:38 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 09:14:38 print('OpenDaylight started !') 09:14:38 else: 09:14:38 print('OpenDaylight failed to start !') 09:14:38 shutdown_process(process) 09:14:38 for pid in process_list: 09:14:38 shutdown_process(pid) 09:14:38 > sys.exit(1) 09:14:38 E SystemExit: 1 09:14:38 09:14:38 transportpce_tests/common/test_utils.py:233: SystemExit 09:14:38 ---------------------------- Captured stdout setup ----------------------------- 09:14:38 sample files content loaded 09:14:38 starting OpenDaylight... 09:14:38 starting KARAF (karaf) TransportPCE build... 09:14:38 Pattern not found after 100 seconds! OpenDaylight failed to start ! 09:14:38 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b13d80> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b12340> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b123e0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b13d80> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901a700> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b123e0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901afc0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901b420> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b123e0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809019ee0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901b240> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b123e0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901b240> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f980901b420> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b11ee0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b11da0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809019440> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809018e00> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 09:14:38 09:14:38 cls = 09:14:38 func = . at 0x7f9809b11ee0> 09:14:38 when = 'setup' 09:14:38 reraise = (, ) 09:14:38 09:14:38 @classmethod 09:14:38 def from_call( 09:14:38 cls, 09:14:38 func: Callable[[], TResult], 09:14:38 when: Literal["collect", "setup", "call", "teardown"], 09:14:38 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:14:38 ) -> CallInfo[TResult]: 09:14:38 """Call func, wrapping the result in a CallInfo. 09:14:38 09:14:38 :param func: 09:14:38 The function to call. Called without arguments. 09:14:38 :type func: Callable[[], _pytest.runner.TResult] 09:14:38 :param when: 09:14:38 The phase in which the function is called. 09:14:38 :param reraise: 09:14:38 Exception or exceptions that shall propagate if raised by the 09:14:38 function, instead of being wrapped in the CallInfo. 09:14:38 """ 09:14:38 excinfo = None 09:14:38 instant = timing.Instant() 09:14:38 try: 09:14:38 > result: TResult | None = func() 09:14:38 ^^^^^^ 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:14:38 lambda: runtest_hook(item=item, **kwds), 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:14:38 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:14:38 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:14:38 yield 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:14:38 return (yield) 09:14:38 ^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:14:38 item.session._setupstate.setup(item) 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:14:38 col.setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:14:38 super().setup() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:14:38 self._request._fillfixtures() 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:14:38 item.funcargs[argname] = self.getfixturevalue(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:14:38 fixturedef = self._get_active_fixturedef(argname) 09:14:38 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:14:38 fixturedef.execute(request=subrequest) 09:14:38 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:14:38 09:14:38 self = 09:14:38 request = > 09:14:38 09:14:38 def execute(self, request: SubRequest) -> FixtureValue: 09:14:38 """Return the value of this fixture, executing it if not cached.""" 09:14:38 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:14:38 # This needs to be done before checking if we have a cached value, since 09:14:38 # if a dependent fixture has their cache invalidated, e.g. due to 09:14:38 # parametrization, they finalize themselves and fixtures depending on it 09:14:38 # (which will likely include this fixture) setting `self.cached_result = None`. 09:14:38 # See #4871 09:14:38 requested_fixtures_that_should_finalize_us = [] 09:14:38 for argname in self.argnames: 09:14:38 fixturedef = request._get_active_fixturedef(argname) 09:14:38 # Saves requested fixtures in a list so we later can add our finalizer 09:14:38 # to them, ensuring that if a requested fixture gets torn down we get torn 09:14:38 # down first. This is generally handled by SetupState, but still currently 09:14:38 # needed when this fixture is not parametrized but depends on a parametrized 09:14:38 # fixture. 09:14:38 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:14:38 09:14:38 # Check for (and return) cached value/exception. 09:14:38 if self.cached_result is not None: 09:14:38 request_cache_key = self.cache_key(request) 09:14:38 cache_key = self.cached_result[1] 09:14:38 try: 09:14:38 # Attempt to make a normal == check: this might fail for objects 09:14:38 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:14:38 cache_hit = bool(request_cache_key == cache_key) 09:14:38 except (ValueError, RuntimeError): 09:14:38 # If the comparison raises, use 'is' as fallback. 09:14:38 cache_hit = request_cache_key is cache_key 09:14:38 09:14:38 if cache_hit: 09:14:38 if self.cached_result[2] is not None: 09:14:38 exc, exc_tb = self.cached_result[2] 09:14:38 raise exc.with_traceback(exc_tb) 09:14:38 else: 09:14:38 return self.cached_result[0] 09:14:38 # We have a previous but differently parametrized fixture instance 09:14:38 # so we need to tear it down before creating a new one. 09:14:38 self.finish(request) 09:14:38 assert self.cached_result is None 09:14:38 09:14:38 # Add finalizer to requested fixtures we saved previously. 09:14:38 # We make sure to do this after checking for cached value to avoid 09:14:38 # adding our finalizer multiple times. (#12135) 09:14:38 finalizer = functools.partial(self.finish, request=request) 09:14:38 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:14:38 parent_fixture.addfinalizer(finalizer) 09:14:38 09:14:38 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:14:38 # which is executed last. 09:14:38 > assert not self._finalizers 09:14:38 ^^^^^^^^^^^^^^^^^^^^ 09:14:38 E AssertionError 09:14:38 09:14:38 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:14:38 =========================== short test summary info ============================ 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 09:14:38 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 09:14:38 20 errors in 124.25s (0:02:04) 09:14:38 testsPCE: exit 1 (124.56 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4987 09:14:38 testsPCE: FAIL ✖ in 2 minutes 50.11 seconds 09:14:38 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 09:14:38 tests121: 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 09:14:39 tests190: 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 09:14:45 tests121: freeze> python -m pip freeze --all 09:14:45 tests190: freeze> python -m pip freeze --all 09:14:45 tests_tapi: freeze> python -m pip freeze --all 09:14:45 tests121: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:14:45 tests121: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 1.2.1 09:14:45 using environment variables from ./karaf121.env 09:14:45 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 09:14:45 tests190: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:14:45 tests190: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc 09:14:45 using environment variables from ./karafoc.env 09:14:45 pytest -q transportpce_tests/oc/test01_portmapping.py 09:14:45 tests_tapi: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:14:45 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 09:14:45 using environment variables from ./karaf221.env 09:14:45 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 09:15:33 ........... [100%] 09:15:49 10 passed in 63.62s (0:01:03) 09:15:49 pytest -q transportpce_tests/oc/test02_topology.py 09:15:55 ................EEE.E.EEEEEE.EEEE.E.EEEEE.EEEE.EE.EEEEE.EEE.EE.EEEEEEEE.EEE [100%] 09:16:35 21 passed in 109.70s (0:01:49) 09:16:35 Epytest -q transportpce_tests/1.2.1/test02_topo_portmapping.py 09:16:35 EEE [100%] 09:16:35 ==================================== ERRORS ==================================== 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 09:16:35 @classmethod 09:16:35 def setUpClass(cls): 09:16:35 cls.init_failed = False 09:16:35 os.environ['JAVA_MIN_MEM'] = '1024M' 09:16:35 os.environ['JAVA_MAX_MEM'] = '4096M' 09:16:35 > cls.processes = test_utils.start_tpce() 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 09:16:35 transportpce_tests/tapi/test01_abstracted_topology.py:148: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 def start_tpce(): 09:16:35 if 'NO_ODL_STARTUP' in os.environ: 09:16:35 print('No OpenDaylight instance to start!') 09:16:35 return [] 09:16:35 print('starting OpenDaylight...') 09:16:35 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 09:16:35 process = start_lighty() 09:16:35 else: 09:16:35 process = start_karaf() 09:16:35 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 09:16:35 print('OpenDaylight started !') 09:16:35 else: 09:16:35 print('OpenDaylight failed to start !') 09:16:35 shutdown_process(process) 09:16:35 for pid in process_list: 09:16:35 shutdown_process(pid) 09:16:35 > sys.exit(1) 09:16:35 E SystemExit: 1 09:16:35 09:16:35 transportpce_tests/common/test_utils.py:233: SystemExit 09:16:35 ---------------------------- Captured stdout setup ----------------------------- 09:16:35 starting OpenDaylight... 09:16:35 starting KARAF (karaf221) TransportPCE build... 09:16:35 Pattern not found after 100 seconds! OpenDaylight failed to start ! 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108bee7a0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108c3fe20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108c3f740> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110b198900> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110af72de0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beeca0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110b198900> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110af72de0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110b198900> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110af72de0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108c3f920> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110b198900> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beea20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2700> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110b198900> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f110af72de0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1da0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beec00> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f05e0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1440> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2a20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1800> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1800> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2980> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2ca0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2b60> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2de0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2b60> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2020> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2b60> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f25c0> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1760> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1800> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1800> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f3740> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f3240> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f1760> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f1108beef20> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 09:16:35 09:16:35 cls = 09:16:35 func = . at 0x7f11087f2d40> 09:16:35 when = 'setup' 09:16:35 reraise = (, ) 09:16:35 09:16:35 @classmethod 09:16:35 def from_call( 09:16:35 cls, 09:16:35 func: Callable[[], TResult], 09:16:35 when: Literal["collect", "setup", "call", "teardown"], 09:16:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:16:35 ) -> CallInfo[TResult]: 09:16:35 """Call func, wrapping the result in a CallInfo. 09:16:35 09:16:35 :param func: 09:16:35 The function to call. Called without arguments. 09:16:35 :type func: Callable[[], _pytest.runner.TResult] 09:16:35 :param when: 09:16:35 The phase in which the function is called. 09:16:35 :param reraise: 09:16:35 Exception or exceptions that shall propagate if raised by the 09:16:35 function, instead of being wrapped in the CallInfo. 09:16:35 """ 09:16:35 excinfo = None 09:16:35 instant = timing.Instant() 09:16:35 try: 09:16:35 > result: TResult | None = func() 09:16:35 ^^^^^^ 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:16:35 lambda: runtest_hook(item=item, **kwds), 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:16:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:16:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:16:35 yield 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:16:35 return (yield) 09:16:35 ^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:16:35 item.session._setupstate.setup(item) 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:16:35 col.setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:16:35 super().setup() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:16:35 self._request._fillfixtures() 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:16:35 item.funcargs[argname] = self.getfixturevalue(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:16:35 fixturedef = self._get_active_fixturedef(argname) 09:16:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:16:35 fixturedef.execute(request=subrequest) 09:16:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:16:35 09:16:35 self = 09:16:35 request = > 09:16:35 09:16:35 def execute(self, request: SubRequest) -> FixtureValue: 09:16:35 """Return the value of this fixture, executing it if not cached.""" 09:16:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:16:35 # This needs to be done before checking if we have a cached value, since 09:16:35 # if a dependent fixture has their cache invalidated, e.g. due to 09:16:35 # parametrization, they finalize themselves and fixtures depending on it 09:16:35 # (which will likely include this fixture) setting `self.cached_result = None`. 09:16:35 # See #4871 09:16:35 requested_fixtures_that_should_finalize_us = [] 09:16:35 for argname in self.argnames: 09:16:35 fixturedef = request._get_active_fixturedef(argname) 09:16:35 # Saves requested fixtures in a list so we later can add our finalizer 09:16:35 # to them, ensuring that if a requested fixture gets torn down we get torn 09:16:35 # down first. This is generally handled by SetupState, but still currently 09:16:35 # needed when this fixture is not parametrized but depends on a parametrized 09:16:35 # fixture. 09:16:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:16:35 09:16:35 # Check for (and return) cached value/exception. 09:16:35 if self.cached_result is not None: 09:16:35 request_cache_key = self.cache_key(request) 09:16:35 cache_key = self.cached_result[1] 09:16:35 try: 09:16:35 # Attempt to make a normal == check: this might fail for objects 09:16:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:16:35 cache_hit = bool(request_cache_key == cache_key) 09:16:35 except (ValueError, RuntimeError): 09:16:35 # If the comparison raises, use 'is' as fallback. 09:16:35 cache_hit = request_cache_key is cache_key 09:16:35 09:16:35 if cache_hit: 09:16:35 if self.cached_result[2] is not None: 09:16:35 exc, exc_tb = self.cached_result[2] 09:16:35 raise exc.with_traceback(exc_tb) 09:16:35 else: 09:16:35 return self.cached_result[0] 09:16:35 # We have a previous but differently parametrized fixture instance 09:16:35 # so we need to tear it down before creating a new one. 09:16:35 self.finish(request) 09:16:35 assert self.cached_result is None 09:16:35 09:16:35 # Add finalizer to requested fixtures we saved previously. 09:16:35 # We make sure to do this after checking for cached value to avoid 09:16:35 # adding our finalizer multiple times. (#12135) 09:16:35 finalizer = functools.partial(self.finish, request=request) 09:16:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:16:35 parent_fixture.addfinalizer(finalizer) 09:16:35 09:16:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:16:35 # which is executed last. 09:16:35 > assert not self._finalizers 09:16:35 ^^^^^^^^^^^^^^^^^^^^ 09:16:35 E AssertionError 09:16:35 09:16:35 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:16:35 =========================== short test summary info ============================ 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 09:16:35 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 09:16:36 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 09:16:36 51 errors in 110.32s (0:01:50) 09:16:36 tests_tapi: exit 1 (110.62 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=5106 09:16:36 tests_tapi: FAIL ✖ in 1 minute 57.85 seconds 09:16:36 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 09:16:36 ....tests221: freeze> python -m pip freeze --all 09:16:43 tests221: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:16:43 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 09:16:43 using environment variables from ./karaf221.env 09:16:43 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 09:16:44 .. [100%] 09:16:48 14 passed in 59.11s 09:16:48 pytest -q transportpce_tests/oc/test03_renderer.py 09:17:19 ............. [100%] 09:17:33 6 passed in 58.02s 09:17:33 pytest -q transportpce_tests/1.2.1/test03_topology.py 09:17:33 ............ [100%] 09:17:48 19 passed in 59.50s 09:17:48 pytest -q transportpce_tests/oc/test04_end2end.py 09:18:24 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEE [100%] 09:18:32 ==================================== ERRORS ==================================== 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 09:18:32 09:18:32 cls = 09:18:32 09:18:32 @classmethod 09:18:32 def setUpClass(cls): 09:18:32 > cls.processes = test_utils.start_tpce() 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 09:18:32 transportpce_tests/2.2.1/test01_portmapping.py:33: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 def start_tpce(): 09:18:32 if 'NO_ODL_STARTUP' in os.environ: 09:18:32 print('No OpenDaylight instance to start!') 09:18:32 return [] 09:18:32 print('starting OpenDaylight...') 09:18:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 09:18:32 process = start_lighty() 09:18:32 else: 09:18:32 process = start_karaf() 09:18:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 09:18:32 print('OpenDaylight started !') 09:18:32 else: 09:18:32 print('OpenDaylight failed to start !') 09:18:32 shutdown_process(process) 09:18:32 for pid in process_list: 09:18:32 shutdown_process(pid) 09:18:32 > sys.exit(1) 09:18:32 E SystemExit: 1 09:18:32 09:18:32 transportpce_tests/common/test_utils.py:233: SystemExit 09:18:32 ---------------------------- Captured stdout setup ----------------------------- 09:18:32 starting OpenDaylight... 09:18:32 starting KARAF (karaf221) TransportPCE build... 09:18:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 09:18:32 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7703880> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774afc0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a9a96fc0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a8ecd300> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774b4c0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a8ece160> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a9a96fc0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774a020> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a9a96fc0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774a7a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774a020> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774b2e0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774a2a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774bf60> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7749d00> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7749f80> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7749d00> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a77022a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7702480> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a77022a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7702480> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774a2a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7190d60> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7191580> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a71900e0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a7190ae0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a71904a0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a71907c0> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 09:18:32 09:18:32 cls = 09:18:32 func = . at 0x7f57a774be20> 09:18:32 when = 'setup' 09:18:32 reraise = (, ) 09:18:32 09:18:32 @classmethod 09:18:32 def from_call( 09:18:32 cls, 09:18:32 func: Callable[[], TResult], 09:18:32 when: Literal["collect", "setup", "call", "teardown"], 09:18:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:18:32 ) -> CallInfo[TResult]: 09:18:32 """Call func, wrapping the result in a CallInfo. 09:18:32 09:18:32 :param func: 09:18:32 The function to call. Called without arguments. 09:18:32 :type func: Callable[[], _pytest.runner.TResult] 09:18:32 :param when: 09:18:32 The phase in which the function is called. 09:18:32 :param reraise: 09:18:32 Exception or exceptions that shall propagate if raised by the 09:18:32 function, instead of being wrapped in the CallInfo. 09:18:32 """ 09:18:32 excinfo = None 09:18:32 instant = timing.Instant() 09:18:32 try: 09:18:32 > result: TResult | None = func() 09:18:32 ^^^^^^ 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:18:32 lambda: runtest_hook(item=item, **kwds), 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:18:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:18:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:18:32 yield 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:18:32 return (yield) 09:18:32 ^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:18:32 item.session._setupstate.setup(item) 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:18:32 col.setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:18:32 super().setup() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:18:32 self._request._fillfixtures() 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:18:32 item.funcargs[argname] = self.getfixturevalue(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:18:32 fixturedef = self._get_active_fixturedef(argname) 09:18:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:18:32 fixturedef.execute(request=subrequest) 09:18:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:18:32 09:18:32 self = 09:18:32 request = > 09:18:32 09:18:32 def execute(self, request: SubRequest) -> FixtureValue: 09:18:32 """Return the value of this fixture, executing it if not cached.""" 09:18:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:18:32 # This needs to be done before checking if we have a cached value, since 09:18:32 # if a dependent fixture has their cache invalidated, e.g. due to 09:18:32 # parametrization, they finalize themselves and fixtures depending on it 09:18:32 # (which will likely include this fixture) setting `self.cached_result = None`. 09:18:32 # See #4871 09:18:32 requested_fixtures_that_should_finalize_us = [] 09:18:32 for argname in self.argnames: 09:18:32 fixturedef = request._get_active_fixturedef(argname) 09:18:32 # Saves requested fixtures in a list so we later can add our finalizer 09:18:32 # to them, ensuring that if a requested fixture gets torn down we get torn 09:18:32 # down first. This is generally handled by SetupState, but still currently 09:18:32 # needed when this fixture is not parametrized but depends on a parametrized 09:18:32 # fixture. 09:18:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:18:32 09:18:32 # Check for (and return) cached value/exception. 09:18:32 if self.cached_result is not None: 09:18:32 request_cache_key = self.cache_key(request) 09:18:32 cache_key = self.cached_result[1] 09:18:32 try: 09:18:32 # Attempt to make a normal == check: this might fail for objects 09:18:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:18:32 cache_hit = bool(request_cache_key == cache_key) 09:18:32 except (ValueError, RuntimeError): 09:18:32 # If the comparison raises, use 'is' as fallback. 09:18:32 cache_hit = request_cache_key is cache_key 09:18:32 09:18:32 if cache_hit: 09:18:32 if self.cached_result[2] is not None: 09:18:32 exc, exc_tb = self.cached_result[2] 09:18:32 raise exc.with_traceback(exc_tb) 09:18:32 else: 09:18:32 return self.cached_result[0] 09:18:32 # We have a previous but differently parametrized fixture instance 09:18:32 # so we need to tear it down before creating a new one. 09:18:32 self.finish(request) 09:18:32 assert self.cached_result is None 09:18:32 09:18:32 # Add finalizer to requested fixtures we saved previously. 09:18:32 # We make sure to do this after checking for cached value to avoid 09:18:32 # adding our finalizer multiple times. (#12135) 09:18:32 finalizer = functools.partial(self.finish, request=request) 09:18:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:18:32 parent_fixture.addfinalizer(finalizer) 09:18:32 09:18:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:18:32 # which is executed last. 09:18:32 > assert not self._finalizers 09:18:32 ^^^^^^^^^^^^^^^^^^^^ 09:18:32 E AssertionError 09:18:32 09:18:32 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:18:32 =========================== short test summary info ============================ 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 09:18:32 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 09:18:32 35 errors in 108.36s (0:01:48) 09:18:32 tests221: exit 1 (108.68 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=7582 09:18:32 tests221: FAIL ✖ in 1 minute 56.37 seconds 09:18:32 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 09:18:33 ...tests_hybrid: freeze> python -m pip freeze --all 09:18:39 tests_hybrid: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:18:39 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 09:18:39 using environment variables from ./karaf221.env 09:18:39 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 09:18:39 ............................................................... [100%] 09:20:08 44 passed in 154.45s (0:02:34) 09:20:08 pytest -q transportpce_tests/1.2.1/test04_renderer_service_path_nominal.py 09:20:20 EEEEEEEEEEEEEEEEE.EEEEE.EEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 09:20:31 ==================================== ERRORS ==================================== 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 09:20:31 09:20:31 cls = 09:20:31 09:20:31 @classmethod 09:20:31 def setUpClass(cls): 09:20:31 > cls.processes = test_utils.start_tpce() 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 09:20:31 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 def start_tpce(): 09:20:31 if 'NO_ODL_STARTUP' in os.environ: 09:20:31 print('No OpenDaylight instance to start!') 09:20:31 return [] 09:20:31 print('starting OpenDaylight...') 09:20:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 09:20:31 process = start_lighty() 09:20:31 else: 09:20:31 process = start_karaf() 09:20:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 09:20:31 print('OpenDaylight started !') 09:20:31 else: 09:20:31 print('OpenDaylight failed to start !') 09:20:31 shutdown_process(process) 09:20:31 for pid in process_list: 09:20:31 shutdown_process(pid) 09:20:31 > sys.exit(1) 09:20:31 E SystemExit: 1 09:20:31 09:20:31 transportpce_tests/common/test_utils.py:233: SystemExit 09:20:31 ---------------------------- Captured stdout setup ----------------------------- 09:20:31 starting OpenDaylight... 09:20:31 starting KARAF (karaf221) TransportPCE build... 09:20:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6de0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46f0bb00> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a4923eca0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5bc0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a48631da0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5bc0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46f0b380> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46f0aa20> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a492087c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5bc0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5a80> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5bc0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a492087c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5ee0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5e40> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46f0bb00> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb5e40> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a492087c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a492087c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6200> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6200> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b49a0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5580> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b63e0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5800> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b4540> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5080> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b4540> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b58a0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b60c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6b60> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5bc0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b6e80> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b58a0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b5440> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a46eb6160> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 09:20:31 09:20:31 cls = 09:20:31 func = . at 0x7f2a468b65c0> 09:20:31 when = 'setup' 09:20:31 reraise = (, ) 09:20:31 09:20:31 @classmethod 09:20:31 def from_call( 09:20:31 cls, 09:20:31 func: Callable[[], TResult], 09:20:31 when: Literal["collect", "setup", "call", "teardown"], 09:20:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 09:20:31 ) -> CallInfo[TResult]: 09:20:31 """Call func, wrapping the result in a CallInfo. 09:20:31 09:20:31 :param func: 09:20:31 The function to call. Called without arguments. 09:20:31 :type func: Callable[[], _pytest.runner.TResult] 09:20:31 :param when: 09:20:31 The phase in which the function is called. 09:20:31 :param reraise: 09:20:31 Exception or exceptions that shall propagate if raised by the 09:20:31 function, instead of being wrapped in the CallInfo. 09:20:31 """ 09:20:31 excinfo = None 09:20:31 instant = timing.Instant() 09:20:31 try: 09:20:31 > result: TResult | None = func() 09:20:31 ^^^^^^ 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 09:20:31 lambda: runtest_hook(item=item, **kwds), 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 09:20:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 09:20:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 09:20:31 yield 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 09:20:31 return (yield) 09:20:31 ^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 09:20:31 item.session._setupstate.setup(item) 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 09:20:31 col.setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 09:20:31 super().setup() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 09:20:31 self._request._fillfixtures() 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 09:20:31 item.funcargs[argname] = self.getfixturevalue(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 09:20:31 fixturedef = self._get_active_fixturedef(argname) 09:20:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 09:20:31 fixturedef.execute(request=subrequest) 09:20:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 09:20:31 09:20:31 self = 09:20:31 request = > 09:20:31 09:20:31 def execute(self, request: SubRequest) -> FixtureValue: 09:20:31 """Return the value of this fixture, executing it if not cached.""" 09:20:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 09:20:31 # This needs to be done before checking if we have a cached value, since 09:20:31 # if a dependent fixture has their cache invalidated, e.g. due to 09:20:31 # parametrization, they finalize themselves and fixtures depending on it 09:20:31 # (which will likely include this fixture) setting `self.cached_result = None`. 09:20:31 # See #4871 09:20:31 requested_fixtures_that_should_finalize_us = [] 09:20:31 for argname in self.argnames: 09:20:31 fixturedef = request._get_active_fixturedef(argname) 09:20:31 # Saves requested fixtures in a list so we later can add our finalizer 09:20:31 # to them, ensuring that if a requested fixture gets torn down we get torn 09:20:31 # down first. This is generally handled by SetupState, but still currently 09:20:31 # needed when this fixture is not parametrized but depends on a parametrized 09:20:31 # fixture. 09:20:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 09:20:31 09:20:31 # Check for (and return) cached value/exception. 09:20:31 if self.cached_result is not None: 09:20:31 request_cache_key = self.cache_key(request) 09:20:31 cache_key = self.cached_result[1] 09:20:31 try: 09:20:31 # Attempt to make a normal == check: this might fail for objects 09:20:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 09:20:31 cache_hit = bool(request_cache_key == cache_key) 09:20:31 except (ValueError, RuntimeError): 09:20:31 # If the comparison raises, use 'is' as fallback. 09:20:31 cache_hit = request_cache_key is cache_key 09:20:31 09:20:31 if cache_hit: 09:20:31 if self.cached_result[2] is not None: 09:20:31 exc, exc_tb = self.cached_result[2] 09:20:31 raise exc.with_traceback(exc_tb) 09:20:31 else: 09:20:31 return self.cached_result[0] 09:20:31 # We have a previous but differently parametrized fixture instance 09:20:31 # so we need to tear it down before creating a new one. 09:20:31 self.finish(request) 09:20:31 assert self.cached_result is None 09:20:31 09:20:31 # Add finalizer to requested fixtures we saved previously. 09:20:31 # We make sure to do this after checking for cached value to avoid 09:20:31 # adding our finalizer multiple times. (#12135) 09:20:31 finalizer = functools.partial(self.finish, request=request) 09:20:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 09:20:31 parent_fixture.addfinalizer(finalizer) 09:20:31 09:20:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 09:20:31 # which is executed last. 09:20:31 > assert not self._finalizers 09:20:31 ^^^^^^^^^^^^^^^^^^^^ 09:20:31 E AssertionError 09:20:31 09:20:31 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 09:20:31 =========================== short test summary info ============================ 09:20:31 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 09:20:31 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 09:20:31 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 09:20:31 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 09:20:31 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 09:20:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 09:20:32 51 errors in 112.25s (0:01:52) 09:20:32 tests_hybrid: exit 1 (112.54 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=10148 09:20:42 .......... [100%] 09:20:54 30 passed in 185.56s (0:03:05) 09:20:54 tests_hybrid: FAIL ✖ in 1 minute 59.62 seconds 09:20:54 tests190: OK ✔ in 6 minutes 16.13 seconds 09:20:54 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 09:20:55 ...tests71: freeze> python -m pip freeze --all 09:21:00 tests71: bcrypt==5.0.0,certifi==2026.6.17,cffi==2.0.0,charset-normalizer==3.4.7,cryptography==49.0.0,dict2xml==1.7.8,idna==3.18,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.1,netconf-client==3.6.0,packaging==26.2,paramiko==5.0.0,pip==26.1.2,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.20.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==82.0.1,urllib3==2.7.0 09:21:00 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 09:21:00 using environment variables from ./karaf71.env 09:21:00 pytest -q transportpce_tests/7.1/test01_portmapping.py 09:21:01 ................... [100%] 09:21:35 24 passed in 86.48s (0:01:26) 09:21:35 pytest -q transportpce_tests/1.2.1/test05_olm.py 09:21:36 ......... [100%] 09:21:46 12 passed in 45.01s 09:21:46 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 09:22:23 ................................................................................................ [100%] 09:24:34 62 passed in 168.26s (0:02:48) 09:24:35 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 09:24:38 ...... [100%] 09:24:52 40 passed in 197.10s (0:03:17) 09:24:52 pytest -q transportpce_tests/1.2.1/test06_end2end.py 09:25:18 ................................................................................................ [100%] 09:30:05 48 passed in 330.65s (0:05:30) 09:30:05 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 09:30:35 ...................... [100%] 09:31:23 22 passed in 77.19s (0:01:17) 09:31:50 ...... [100%] 09:34:05 54 passed in 552.23s (0:09:12) 09:34:05 tests71: OK ✔ in 10 minutes 29.14 seconds 09:34:05 buildcontroller: FAIL code 1 (77.35=setup[8.37]+cmd[68.98] seconds) 09:34:05 sims: OK (14.70=setup[10.63]+cmd[4.06] seconds) 09:34:05 build_karaf_tests121: OK (75.73=setup[7.81]+cmd[67.93] seconds) 09:34:05 testsPCE: FAIL code 1 (170.11=setup[45.55]+cmd[124.56] seconds) 09:34:05 tests121: OK (1167.13=setup[7.19]+cmd[1159.93] seconds) 09:34:05 build_karaf_tests221: FAIL code 127 (29.20=setup[7.64]+cmd[21.56] seconds) 09:34:05 tests_tapi: FAIL code 1 (117.85=setup[7.23]+cmd[110.62] seconds) 09:34:05 tests221: FAIL code 1 (116.37=setup[7.69]+cmd[108.68] seconds) 09:34:05 build_karaf_tests71: OK (75.87=setup[7.81]+cmd[68.06] seconds) 09:34:05 tests71: OK (629.14=setup[6.60]+cmd[622.54] seconds) 09:34:05 build_karaf_tests190: OK (71.51=setup[7.86]+cmd[63.66] seconds) 09:34:05 tests190: OK (376.13=setup[7.19]+cmd[368.93] seconds) 09:34:05 tests_hybrid: FAIL code 1 (119.62=setup[7.08]+cmd[112.54] seconds) 09:34:05 buildlighty: OK (54.60=setup[17.42]+cmd[37.18] seconds) 09:34:05 docs: OK (31.99=setup[28.32]+cmd[3.67] seconds) 09:34:05 docs-linkcheck: OK (32.23=setup[27.87]+cmd[4.36] seconds) 09:34:05 checkbashisms: OK (3.52=setup[2.23]+cmd[0.01,0.05,1.23] seconds) 09:34:05 pre-commit: OK (72.78=setup[2.93]+cmd[0.00,0.01,58.24,11.60] seconds) 09:34:05 pylint: OK (39.81=setup[3.68]+cmd[36.13] seconds) 09:34:05 evaluation failed :( (1490.51 seconds) 09:34:05 + tox_status=1 09:34:05 + echo '---> Completed tox runs' 09:34:05 ---> Completed tox runs 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/build_karaf_tests121/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=build_karaf_tests121 09:34:05 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests121 09:34:05 + for i in .tox/*/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 ++ echo .tox/build_karaf_tests190/log 09:34:05 + tox_env=build_karaf_tests190 09:34:05 + cp -r .tox/build_karaf_tests190/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests190 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/build_karaf_tests221/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=build_karaf_tests221 09:34:05 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/build_karaf_tests71/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=build_karaf_tests71 09:34:05 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 09:34:05 + for i in .tox/*/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 ++ echo .tox/buildcontroller/log 09:34:05 + tox_env=buildcontroller 09:34:05 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/buildlighty/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=buildlighty 09:34:05 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/checkbashisms/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=checkbashisms 09:34:05 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/docs-linkcheck/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=docs-linkcheck 09:34:05 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/docs/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=docs 09:34:05 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/pre-commit/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=pre-commit 09:34:05 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/pylint/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=pylint 09:34:05 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/sims/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=sims 09:34:05 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/tests121/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=tests121 09:34:05 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests121 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/tests190/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=tests190 09:34:05 + cp -r .tox/tests190/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests190 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/tests221/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=tests221 09:34:05 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/tests71/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=tests71 09:34:05 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/testsPCE/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=testsPCE 09:34:05 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 09:34:05 + for i in .tox/*/log 09:34:05 ++ echo .tox/tests_hybrid/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 + tox_env=tests_hybrid 09:34:05 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 09:34:05 + for i in .tox/*/log 09:34:05 ++ awk -F/ '{print $2}' 09:34:05 ++ echo .tox/tests_tapi/log 09:34:05 + tox_env=tests_tapi 09:34:05 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 09:34:05 + DOC_DIR=docs/_build/html 09:34:05 + [[ -d docs/_build/html ]] 09:34:05 + echo '---> Archiving generated docs' 09:34:05 ---> Archiving generated docs 09:34:05 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 09:34:05 + echo '---> tox-run.sh ends' 09:34:05 ---> tox-run.sh ends 09:34:05 + test 1 -eq 0 09:34:05 + exit 1 09:34:05 ++ '[' 1 = 1 ']' 09:34:05 ++ '[' -x /usr/bin/clear_console ']' 09:34:05 ++ /usr/bin/clear_console -q 09:34:05 Build step 'Execute shell' marked build as failure 09:34:05 $ ssh-agent -k 09:34:05 unset SSH_AUTH_SOCK; 09:34:05 unset SSH_AGENT_PID; 09:34:05 echo Agent pid 1558 killed; 09:34:05 [ssh-agent] Stopped. 09:34:05 [PostBuildScript] - [INFO] Executing post build scripts. 09:34:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3803142900130414119.sh 09:34:05 ---> sysstat.sh 09:34:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9096227680038948344.sh 09:34:06 ---> package-listing.sh 09:34:06 ++ facter osfamily 09:34:06 ++ tr '[:upper:]' '[:lower:]' 09:34:06 + OS_FAMILY=debian 09:34:06 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 09:34:06 + START_PACKAGES=/tmp/packages_start.txt 09:34:06 + END_PACKAGES=/tmp/packages_end.txt 09:34:06 + DIFF_PACKAGES=/tmp/packages_diff.txt 09:34:06 + PACKAGES=/tmp/packages_start.txt 09:34:06 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:34:06 + PACKAGES=/tmp/packages_end.txt 09:34:06 + case "${OS_FAMILY}" in 09:34:06 + dpkg -l 09:34:06 + grep '^ii' 09:34:06 + '[' -f /tmp/packages_start.txt ']' 09:34:06 + '[' -f /tmp/packages_end.txt ']' 09:34:06 + diff /tmp/packages_start.txt /tmp/packages_end.txt 09:34:06 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 09:34:06 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:34:06 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 09:34:06 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9960128646967334931.sh 09:34:06 ---> capture-instance-metadata.sh 09:34:06 Setup pyenv: 09:34:06 system 09:34:06 3.8.20 09:34:06 3.9.20 09:34:06 3.10.15 09:34:06 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:34:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-r79L from file:/tmp/.os_lf_venv 09:34:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:34:07 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:34:09 lf-activate-venv(): INFO: Base packages installed successfully 09:34:09 lf-activate-venv(): INFO: Installing additional packages: lftools 09:34:19 lf-activate-venv(): INFO: Adding /tmp/venv-r79L/bin to PATH 09:34:19 INFO: Running in OpenStack, capturing instance metadata 09:34:19 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2073455861562037152.sh 09:34:19 provisioning config files... 09:34:20 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #5779 09:34:20 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config1074016429082421624tmp 09:34:20 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 09:34:20 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 09:34:20 provisioning config files... 09:34:20 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 09:34:20 [EnvInject] - Injecting environment variables from a build step. 09:34:20 [EnvInject] - Injecting as environment variables the properties content 09:34:20 SERVER_ID=logs 09:34:20 09:34:20 [EnvInject] - Variables injected successfully. 09:34:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins724229183765487204.sh 09:34:20 ---> create-netrc.sh 09:34:20 WARN: Log server credential not found. 09:34:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17725863993455045892.sh 09:34:20 ---> python-tools-install.sh 09:34:20 Setup pyenv: 09:34:20 system 09:34:20 3.8.20 09:34:20 3.9.20 09:34:20 3.10.15 09:34:20 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:34:21 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-r79L from file:/tmp/.os_lf_venv 09:34:21 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:34:21 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:34:22 lf-activate-venv(): INFO: Base packages installed successfully 09:34:22 lf-activate-venv(): INFO: Installing additional packages: lftools 09:34:32 lf-activate-venv(): INFO: Adding /tmp/venv-r79L/bin to PATH 09:34:32 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins14875277986682355660.sh 09:34:32 ---> uv-install.sh 09:34:32 uv 0.11.26 is already installed 09:34:32 uvx 0.11.26 (x86_64-unknown-linux-gnu) 09:34:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins482602229356932001.sh 09:34:32 ---> sudo-logs.sh 09:34:32 Archiving 'sudo' log.. 09:34:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14176702666817482951.sh 09:34:32 ---> job-cost.sh 09:34:32 INFO: Activating Python virtual environment... 09:34:32 Setup pyenv: 09:34:32 system 09:34:32 3.8.20 09:34:32 3.9.20 09:34:32 3.10.15 09:34:32 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:34:32 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-r79L from file:/tmp/.os_lf_venv 09:34:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:34:32 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:34:34 lf-activate-venv(): INFO: Base packages installed successfully 09:34:34 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 09:34:40 lf-activate-venv(): INFO: Adding /tmp/venv-r79L/bin to PATH 09:34:40 INFO: No stack-cost file found 09:34:40 INFO: Instance uptime: 1695s 09:34:40 INFO: Fetching instance metadata (attempt 1 of 3)... 09:34:40 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 09:34:41 INFO: Successfully fetched instance metadata 09:34:41 INFO: Instance type: v3-standard-4 09:34:41 INFO: Retrieving pricing info for: v3-standard-4 09:34:41 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 09:34:41 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=1695 09:34:41 INFO: Successfully fetched Vexxhost pricing API 09:34:41 INFO: Retrieved cost: 0.11 09:34:41 INFO: Retrieved resource: v3-standard-4 09:34:41 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 09:34:41 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 09:34:41 INFO: Successfully archived job cost data 09:34:41 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,5779,2026-07-01 09:34:41,v3-standard-4,1695,0.11,0.00,FAILURE 09:34:41 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins3632947091915838436.sh 09:34:41 ---> logs-deploy.sh 09:34:41 Setup pyenv: 09:34:41 system 09:34:41 3.8.20 09:34:41 3.9.20 09:34:41 3.10.15 09:34:41 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 09:34:41 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-r79L from file:/tmp/.os_lf_venv 09:34:41 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 09:34:41 lf-activate-venv(): INFO: Attempting to install with network-safe options... 09:34:43 lf-activate-venv(): INFO: Base packages installed successfully 09:34:43 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 09:34:55 lf-activate-venv(): INFO: Adding /tmp/venv-r79L/bin to PATH 09:34:55 WARNING: Nexus logging server not set 09:34:55 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/5779/ 09:34:55 INFO: archiving logs to S3 09:34:57 ---> uname -a: 09:34:57 Linux prd-ubuntu2204-docker-4c-16g-32062 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 09:34:57 09:34:57 09:34:57 ---> lscpu: 09:34:57 Architecture: x86_64 09:34:57 CPU op-mode(s): 32-bit, 64-bit 09:34:57 Address sizes: 40 bits physical, 48 bits virtual 09:34:57 Byte Order: Little Endian 09:34:57 CPU(s): 4 09:34:57 On-line CPU(s) list: 0-3 09:34:57 Vendor ID: AuthenticAMD 09:34:57 Model name: AMD EPYC-Rome Processor 09:34:57 CPU family: 23 09:34:57 Model: 49 09:34:57 Thread(s) per core: 1 09:34:57 Core(s) per socket: 1 09:34:57 Socket(s): 4 09:34:57 Stepping: 0 09:34:57 BogoMIPS: 5600.00 09:34:57 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 nrip_save umip rdpid arch_capabilities 09:34:57 Virtualization: AMD-V 09:34:57 Hypervisor vendor: KVM 09:34:57 Virtualization type: full 09:34:57 L1d cache: 128 KiB (4 instances) 09:34:57 L1i cache: 128 KiB (4 instances) 09:34:57 L2 cache: 2 MiB (4 instances) 09:34:57 L3 cache: 64 MiB (4 instances) 09:34:57 NUMA node(s): 1 09:34:57 NUMA node0 CPU(s): 0-3 09:34:57 Vulnerability Gather data sampling: Not affected 09:34:57 Vulnerability Indirect target selection: Not affected 09:34:57 Vulnerability Itlb multihit: Not affected 09:34:57 Vulnerability L1tf: Not affected 09:34:57 Vulnerability Mds: Not affected 09:34:57 Vulnerability Meltdown: Not affected 09:34:57 Vulnerability Mmio stale data: Not affected 09:34:57 Vulnerability Reg file data sampling: Not affected 09:34:57 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 09:34:57 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 09:34:57 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 09:34:57 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 09:34:57 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 09:34:57 Vulnerability Srbds: Not affected 09:34:57 Vulnerability Tsa: Not affected 09:34:57 Vulnerability Tsx async abort: Not affected 09:34:57 Vulnerability Vmscape: Not affected 09:34:57 09:34:57 09:34:57 ---> nproc: 09:34:57 4 09:34:57 09:34:57 09:34:57 ---> df -h: 09:34:57 Filesystem Size Used Avail Use% Mounted on 09:34:57 tmpfs 1.6G 1.1M 1.6G 1% /run 09:34:57 /dev/vda1 78G 16G 62G 20% / 09:34:57 tmpfs 7.9G 0 7.9G 0% /dev/shm 09:34:57 tmpfs 5.0M 0 5.0M 0% /run/lock 09:34:57 /dev/vda15 105M 6.1M 99M 6% /boot/efi 09:34:57 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 09:34:57 09:34:57 09:34:57 ---> free -m: 09:34:57 total used free shared buff/cache available 09:34:57 Mem: 15989 745 7167 3 8076 14901 09:34:57 Swap: 1023 0 1023 09:34:57 09:34:57 09:34:57 ---> ip addr: 09:34:57 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 09:34:57 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 09:34:57 inet 127.0.0.1/8 scope host lo 09:34:57 valid_lft forever preferred_lft forever 09:34:57 inet6 ::1/128 scope host 09:34:57 valid_lft forever preferred_lft forever 09:34:57 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 09:34:57 link/ether fa:16:3e:dc:00:ab brd ff:ff:ff:ff:ff:ff 09:34:57 altname enp0s3 09:34:57 inet 10.30.170.115/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 09:34:57 valid_lft 84695sec preferred_lft 84695sec 09:34:57 inet6 fe80::f816:3eff:fedc:ab/64 scope link 09:34:57 valid_lft forever preferred_lft forever 09:34:57 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 09:34:57 link/ether 16:c9:87:af:44:63 brd ff:ff:ff:ff:ff:ff 09:34:57 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 09:34:57 valid_lft forever preferred_lft forever 09:34:57 inet6 fe80::14c9:87ff:feaf:4463/64 scope link 09:34:57 valid_lft forever preferred_lft forever 09:34:57 09:34:57 09:34:57 ---> sar -b -r -n DEV: 09:34:57 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-32062) 07/01/26 _x86_64_ (4 CPU) 09:34:57 09:34:57 09:06:34 LINUX RESTART (4 CPU) 09:34:57 09:34:57 09:10:13 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 09:34:57 09:20:01 95.25 3.25 88.20 3.80 390.80 25124.51 6949.79 09:34:57 09:30:06 21.43 0.27 20.02 1.14 13.90 1376.46 981.76 09:34:57 Average: 57.79 1.73 53.60 2.45 199.50 13070.57 3920.56 09:34:57 09:34:57 09:10:13 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 09:34:57 09:20:01 165736 7672480 8249716 50.39 238912 7074328 9255612 53.13 1717040 13724168 172 09:34:57 09:30:06 3372772 11175888 4747112 28.99 249136 7351200 5481236 31.46 1852712 10377424 1700 09:34:57 Average: 1769254 9424184 6498414 39.69 244024 7212764 7368424 42.29 1784876 12050796 936 09:34:57 09:34:57 09:10:13 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 09:34:57 09:20:01 lo 12.65 12.65 11.18 11.18 0.00 0.00 0.00 0.00 09:34:57 09:20:01 ens3 142.57 98.51 2012.98 12.24 0.00 0.00 0.00 0.00 09:34:57 09:20:01 docker0 0.00 0.01 0.00 0.00 0.00 0.00 0.00 0.00 09:34:57 09:30:06 lo 34.09 34.09 14.15 14.15 0.00 0.00 0.00 0.00 09:34:57 09:30:06 ens3 1.88 1.65 0.42 0.92 0.00 0.00 0.00 0.00 09:34:57 09:30:06 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:57 Average: lo 23.53 23.53 12.69 12.69 0.00 0.00 0.00 0.00 09:34:57 Average: ens3 71.16 49.35 991.45 6.49 0.00 0.00 0.00 0.00 09:34:57 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 09:34:57 09:34:57 09:34:57 ---> sar -P ALL: 09:34:57 Linux 5.15.0-174-generic (prd-ubuntu2204-docker-4c-16g-32062) 07/01/26 _x86_64_ (4 CPU) 09:34:57 09:34:57 09:06:34 LINUX RESTART (4 CPU) 09:34:57 09:34:57 09:10:13 CPU %user %nice %system %iowait %steal %idle 09:34:57 09:20:01 all 50.21 0.00 2.34 0.40 0.10 46.95 09:34:57 09:20:01 0 50.85 0.00 2.18 0.30 0.10 46.56 09:34:57 09:20:01 1 51.91 0.00 2.38 0.29 0.10 45.31 09:34:57 09:20:01 2 50.56 0.00 2.29 0.36 0.10 46.70 09:34:57 09:20:01 3 47.52 0.00 2.49 0.65 0.10 49.24 09:34:57 09:30:06 all 31.94 0.00 1.17 0.06 0.10 66.74 09:34:57 09:30:06 0 31.92 0.00 1.19 0.04 0.10 66.75 09:34:57 09:30:06 1 32.60 0.00 1.20 0.07 0.10 66.03 09:34:57 09:30:06 2 31.88 0.00 1.10 0.05 0.09 66.88 09:34:57 09:30:06 3 31.37 0.00 1.18 0.06 0.09 67.30 09:34:57 Average: all 40.96 0.00 1.74 0.22 0.10 56.98 09:34:57 Average: 0 41.26 0.00 1.68 0.17 0.10 56.80 09:34:57 Average: 1 42.13 0.00 1.79 0.18 0.10 55.80 09:34:57 Average: 2 41.10 0.00 1.69 0.20 0.10 56.92 09:34:57 Average: 3 39.34 0.00 1.82 0.35 0.10 58.39 09:34:57 09:34:57 09:34:57