15:43:58 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126683 15:43:58 Running as SYSTEM 15:43:58 [EnvInject] - Loading node environment variables. 15:43:58 Building remotely on prd-ubuntu2204-docker-4c-16g-62468 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 15:43:59 [ssh-agent] Looking for ssh-agent implementation... 15:43:59 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 15:43:59 $ ssh-agent 15:43:59 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXYCP7j1/agent.1554 15:43:59 SSH_AGENT_PID=1556 15:43:59 [ssh-agent] Started. 15:43:59 Running ssh-add (command line suppressed) 15:43:59 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_1927550287316618249.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_1927550287316618249.key) 15:43:59 [ssh-agent] Using credentials jenkins (jenkins-ssh) 15:43:59 The recommended git tool is: NONE 15:44:01 using credential jenkins-ssh 15:44:01 Wiping out workspace first. 15:44:01 Cloning the remote Git repository 15:44:01 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 15:44:01 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 15:44:01 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:01 > git --version # timeout=10 15:44:01 > git --version # 'git version 2.34.1' 15:44:01 using GIT_SSH to set credentials jenkins-ssh 15:44:01 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:01 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:05 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:05 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 15:44:06 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 15:44:06 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 15:44:06 using GIT_SSH to set credentials jenkins-ssh 15:44:06 Verifying host key using known hosts file, will automatically accept unseen keys 15:44:06 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/83/126683/1 # timeout=10 15:44:06 > git rev-parse 9e8bb06d4f46e6d7b71f04fef11a3b639958d2e3^{commit} # timeout=10 15:44:06 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 15:44:06 Checking out Revision 9e8bb06d4f46e6d7b71f04fef11a3b639958d2e3 (refs/changes/83/126683/1) 15:44:06 > git config core.sparsecheckout # timeout=10 15:44:06 > git checkout -f 9e8bb06d4f46e6d7b71f04fef11a3b639958d2e3 # timeout=10 15:44:06 Commit message: "Fix renderer code style violations" 15:44:06 > git rev-parse FETCH_HEAD^{commit} # timeout=10 15:44:06 > git rev-list --no-walk 04c115e330a4150d5a381f4edd55619d32ef1fd0 # timeout=10 15:44:06 > git remote # timeout=10 15:44:06 > git submodule init # timeout=10 15:44:07 > git submodule sync # timeout=10 15:44:07 > git config --get remote.origin.url # timeout=10 15:44:07 > git submodule init # timeout=10 15:44:07 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 15:44:07 ERROR: No submodules found. 15:44:10 provisioning config files... 15:44:10 copy managed file [npmrc] to file:/home/jenkins/.npmrc 15:44:10 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 15:44:10 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1903386818614248353.sh 15:44:10 ---> python-tools-install.sh 15:44:10 Setup pyenv: 15:44:10 * system (set by /opt/pyenv/version) 15:44:10 * 3.8.20 (set by /opt/pyenv/version) 15:44:10 * 3.9.20 (set by /opt/pyenv/version) 15:44:10 3.10.15 15:44:10 3.11.10 15:44:15 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-wlas 15:44:15 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 15:44:15 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:44:19 lf-activate-venv(): INFO: Installing additional packages: lftools 15:44:44 lf-activate-venv(): INFO: Adding /tmp/venv-wlas/bin to PATH 15:44:44 Generating Requirements File 15:45:07 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 15:45:07 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 15:45:08 Python 3.11.10 15:45:08 pip 26.2.1 from /tmp/venv-wlas/lib/python3.11/site-packages/pip (python 3.11) 15:45:08 aiohappyeyeballs==2.7.1 15:45:08 aiohttp==3.14.4 15:45:08 aiosignal==1.4.0 15:45:08 appdirs==1.4.4 15:45:08 argcomplete==3.7.2 15:45:08 aspy.yaml==1.3.0 15:45:08 attrs==26.1.0 15:45:08 autopage==0.6.0 15:45:08 beautifulsoup4==4.15.0 15:45:08 boto3==1.43.108 15:45:08 botocore==1.43.108 15:45:08 bs4==0.0.2 15:45:08 certifi==2026.7.22 15:45:08 cffi==2.1.1 15:45:08 cfgv==3.5.0 15:45:08 chardet==7.6.0 15:45:08 charset-normalizer==3.5.2 15:45:08 click==8.5.0 15:45:08 cliff==4.16.0 15:45:08 cmd2==4.2.4 15:45:08 cryptography==3.3.2 15:45:08 debtcollector==3.1.0 15:45:08 decorator==5.3.1 15:45:08 defusedxml==0.7.1 15:45:08 Deprecated==1.3.1 15:45:08 distlib==0.4.3 15:45:08 dnspython==2.8.0 15:45:08 docker==7.2.0 15:45:08 dogpile.cache==1.5.0 15:45:08 durationpy==0.11 15:45:08 email-validator==2.3.0 15:45:08 filelock==4.0.12 15:45:08 frozenlist==1.8.0 15:45:08 future==1.0.0 15:45:08 gitdb==4.0.12 15:45:08 GitPython==3.2.0 15:45:08 httplib2==0.30.2 15:45:08 identify==2.6.20 15:45:08 idna==3.20 15:45:08 importlib-resources==1.5.0 15:45:08 iso8601==2.1.0 15:45:08 Jinja2==3.1.6 15:45:08 jmespath==1.1.0 15:45:08 jsonpatch==1.33 15:45:08 jsonpointer==3.1.1 15:45:08 jsonschema==4.26.0 15:45:08 jsonschema-specifications==2025.9.1 15:45:08 keystoneauth1==5.17.0 15:45:08 kubernetes==36.0.3 15:45:08 lftools==0.37.23 15:45:08 lxml==6.1.3 15:45:08 markdown-it-py==4.2.0 15:45:08 MarkupSafe==3.0.4 15:45:08 mdurl==0.1.2 15:45:08 msgpack==1.2.3 15:45:08 multi_key_dict==2.0.3 15:45:08 multidict==6.9.1 15:45:08 munch==4.0.0 15:45:08 netaddr==1.3.0 15:45:08 niet==1.4.2 15:45:08 nodeenv==1.11.0 15:45:08 oauth2client==4.1.3 15:45:08 oauthlib==4.0.0 15:45:08 openstacksdk==4.20.0 15:45:08 os-service-types==1.9.0 15:45:08 osc-lib==4.7.0 15:45:08 oslo.config==10.7.0 15:45:08 oslo.context==6.5.0 15:45:08 oslo.i18n==6.9.0 15:45:08 oslo.log==8.3.2 15:45:08 oslo.serialization==5.11.0 15:45:08 oslo.utils==10.2.0 15:45:08 packaging==26.3 15:45:08 pbr==7.0.3 15:45:08 platformdirs==4.12.3 15:45:08 prettytable==3.18.0 15:45:08 prompt_toolkit==3.0.53 15:45:08 propcache==0.5.4 15:45:08 psutil==7.2.2 15:45:08 pyasn1==0.6.4 15:45:08 pyasn1_modules==0.4.2 15:45:08 pycparser==3.0 15:45:08 pygerrit2==2.0.15 15:45:08 PyGithub==2.10.0 15:45:08 Pygments==2.21.0 15:45:08 PyJWT==2.15.1 15:45:08 PyNaCl==1.6.2 15:45:08 pyparsing==2.4.7 15:45:08 pyperclip==1.11.0 15:45:08 pyrsistent==0.20.0 15:45:08 python-dateutil==2.9.0.post0 15:45:08 python-discovery==1.6.1 15:45:08 python-heatclient==5.3.0 15:45:08 python-jenkins==1.8.3 15:45:08 python-keystoneclient==6.0.0 15:45:08 python-magnumclient==5.0.0 15:45:08 python-manilaclient==6.3.0 15:45:08 python-openstackclient==10.3.0 15:45:08 python-swiftclient==4.11.0 15:45:08 PyYAML==6.0.3 15:45:08 referencing==0.37.0 15:45:08 requests==2.34.2 15:45:08 requests-oauthlib==2.0.0 15:45:08 rfc3986==2.0.0 15:45:08 rich==15.0.0 15:45:08 rich-argparse==1.8.0 15:45:08 rpds-py==2026.9.1 15:45:08 rsa==4.9.1 15:45:08 ruamel.yaml==0.19.1 15:45:08 ruamel.yaml.clib==0.2.15 15:45:08 s3transfer==0.19.2 15:45:08 simplejson==4.2.0 15:45:08 six==1.17.0 15:45:08 smmap==5.0.3 15:45:08 soupsieve==2.10 15:45:08 stevedore==5.9.1 15:45:08 tabulate==0.10.0 15:45:08 toml==0.10.2 15:45:08 tomlkit==0.15.1 15:45:08 tqdm==4.70.1 15:45:08 typing_extensions==4.16.0 15:45:08 urllib3==1.26.20 15:45:08 virtualenv==21.14.5 15:45:08 wcwidth==0.9.2 15:45:08 websocket-client==1.9.2 15:45:08 wrapt==2.5.0 15:45:08 xdg==6.0.0 15:45:08 xmltodict==1.0.4 15:45:08 yarl==1.25.1 15:45:08 yq==4.4.0 15:45:08 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins11318754748664549591.sh 15:45:08 ---> uv-install.sh 15:45:08 Installing uv/uvx (latest) using shell installer 15:45:09 2026-10-06 15:45:09 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-U2SAtz.sh" [1] 15:45:09 downloading uv 0.12.23 x86_64-unknown-linux-gnu 15:45:09 installing to /home/jenkins/.local/bin 15:45:09 uv 15:45:09 uvx 15:45:09 everything's installed! 15:45:09 15:45:09 To add $HOME/.local/bin to your PATH, either restart your shell or run: 15:45:09 15:45:09 source $HOME/.local/bin/env (sh, bash, zsh) 15:45:09 source $HOME/.local/bin/env.fish (fish) 15:45:09 Adding install location to PATH 15:45:09 ---> Validating uv/uvx install 15:45:10 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:45:10 [EnvInject] - Injecting environment variables from a build step. 15:45:10 [EnvInject] - Injecting as environment variables the properties content 15:45:10 PYTHON=python3 15:45:10 15:45:10 [EnvInject] - Variables injected successfully. 15:45:10 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins17764289299606772442.sh 15:45:10 ---> tox-install.sh 15:45:10 + source /home/jenkins/lf-env.sh 15:45:10 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:10 ++ mktemp -d /tmp/venv-XXXX 15:45:10 + lf_venv=/tmp/venv-ylsG 15:45:10 + local venv_file=/tmp/.os_lf_venv 15:45:10 + local python=python3 15:45:10 + local options 15:45:10 + local set_path=true 15:45:10 + local install_args= 15:45:10 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:10 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:10 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:10 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:45:10 + true 15:45:10 + case $1 in 15:45:10 + venv_file=/tmp/.toxenv 15:45:10 + shift 2 15:45:10 + true 15:45:10 + case $1 in 15:45:10 + shift 15:45:10 + break 15:45:10 + case $python in 15:45:10 + local pkg_list= 15:45:10 + [[ -d /opt/pyenv ]] 15:45:10 + echo 'Setup pyenv:' 15:45:10 Setup pyenv: 15:45:10 + export PYENV_ROOT=/opt/pyenv 15:45:10 + PYENV_ROOT=/opt/pyenv 15:45:10 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:10 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:10 + pyenv versions 15:45:10 system 15:45:10 3.8.20 15:45:10 3.9.20 15:45:10 3.10.15 15:45:10 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:45:10 + command -v pyenv 15:45:10 ++ pyenv init - --no-rehash 15:45:10 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:45:10 for i in ${!paths[@]}; do 15:45:10 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:45:10 fi; done; 15:45:10 echo "${paths[*]}"'\'')" 15:45:10 export PATH="/opt/pyenv/shims:${PATH}" 15:45:10 export PYENV_SHELL=bash 15:45:10 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:45:10 pyenv() { 15:45:10 local command 15:45:10 command="${1:-}" 15:45:10 if [ "$#" -gt 0 ]; then 15:45:10 shift 15:45:10 fi 15:45:10 15:45:10 case "$command" in 15:45:10 rehash|shell) 15:45:10 eval "$(pyenv "sh-$command" "$@")" 15:45:10 ;; 15:45:10 *) 15:45:10 command pyenv "$command" "$@" 15:45:10 ;; 15:45:10 esac 15:45:10 }' 15:45:10 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:45:10 for i in ${!paths[@]}; do 15:45:10 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:45:10 fi; done; 15:45:10 echo "${paths[*]}"' 15:45:10 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:10 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:10 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:10 ++ export PYENV_SHELL=bash 15:45:10 ++ PYENV_SHELL=bash 15:45:10 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:45:10 +++ complete -F _pyenv pyenv 15:45:10 ++ lf-pyver python3 15:45:10 ++ local py_version_xy=python3 15:45:10 ++ local py_version_xyz= 15:45:10 ++ pyenv versions 15:45:10 ++ local command 15:45:10 ++ command=versions 15:45:10 ++ '[' 1 -gt 0 ']' 15:45:10 ++ sed 's/^[ *]* //' 15:45:10 ++ shift 15:45:10 ++ case "$command" in 15:45:10 ++ command pyenv versions 15:45:10 ++ awk '{ print $1 }' 15:45:10 ++ grep -E '^[0-9.]*[0-9]$' 15:45:10 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:45:10 +++ grep '^3' /tmp/.pyenv_versions 15:45:10 +++ sort -V 15:45:10 +++ tail -n 1 15:45:10 ++ py_version_xyz=3.11.10 15:45:10 ++ [[ -z 3.11.10 ]] 15:45:10 ++ echo 3.11.10 15:45:10 ++ return 0 15:45:10 + pyenv local 3.11.10 15:45:10 + local command 15:45:10 + command=local 15:45:10 + '[' 2 -gt 0 ']' 15:45:10 + shift 15:45:10 + case "$command" in 15:45:10 + command pyenv local 3.11.10 15:45:10 + for arg in "$@" 15:45:10 + case $arg in 15:45:10 + pkg_list+='tox ' 15:45:10 + for arg in "$@" 15:45:10 + case $arg in 15:45:10 + pkg_list+='virtualenv ' 15:45:10 + for arg in "$@" 15:45:10 + case $arg in 15:45:10 + pkg_list+='urllib3~=1.26.15 ' 15:45:10 + [[ -f /tmp/.toxenv ]] 15:45:10 + [[ ! -f /tmp/.toxenv ]] 15:45:10 + [[ -n '' ]] 15:45:10 + python3 -m venv /tmp/venv-ylsG 15:45:14 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-ylsG' 15:45:14 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-ylsG 15:45:14 + echo /tmp/venv-ylsG 15:45:14 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 15:45:14 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 15:45:14 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:45:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:14 + local 'pip_opts=--upgrade --quiet' 15:45:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:45:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:45:14 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:45:14 + [[ -n '' ]] 15:45:14 + [[ -n '' ]] 15:45:14 + lf-venv-pip-install /tmp/venv-ylsG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:14 + local venv_python=/tmp/venv-ylsG/bin/python3 15:45:14 + shift 15:45:14 + local upstream=https://pypi.org/simple 15:45:14 + /tmp/venv-ylsG/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:18 + return 0 15:45:18 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:45:18 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:45:18 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:45:18 + lf-venv-pip-install /tmp/venv-ylsG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:45:18 + local venv_python=/tmp/venv-ylsG/bin/python3 15:45:18 + shift 15:45:18 + local upstream=https://pypi.org/simple 15:45:18 + /tmp/venv-ylsG/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:45:20 + return 0 15:45:20 + type python3 15:45:20 + true 15:45:20 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-ylsG/bin to PATH' 15:45:20 lf-activate-venv(): INFO: Adding /tmp/venv-ylsG/bin to PATH 15:45:20 + PATH=/tmp/venv-ylsG/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 + return 0 15:45:20 + python3 --version 15:45:20 Python 3.11.10 15:45:20 + python3 -m pip --version 15:45:20 pip 26.2.1 from /tmp/venv-ylsG/lib/python3.11/site-packages/pip (python 3.11) 15:45:20 + python3 -m pip freeze 15:45:20 cachetools==7.2.1 15:45:20 colorama==0.4.6 15:45:20 distlib==0.4.3 15:45:20 filelock==4.0.12 15:45:20 packaging==26.3 15:45:20 platformdirs==4.12.3 15:45:20 pluggy==1.6.0 15:45:20 pyproject-api==1.11.3 15:45:20 python-discovery==1.6.1 15:45:20 tomli_w==1.2.0 15:45:20 tox==4.64.9 15:45:20 typing_extensions==4.16.0 15:45:20 urllib3==1.26.20 15:45:20 virtualenv==21.14.5 15:45:20 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins18252809792942546714.sh 15:45:20 [EnvInject] - Injecting environment variables from a build step. 15:45:20 [EnvInject] - Injecting as environment variables the properties content 15:45:20 PARALLEL=True 15:45:20 15:45:20 [EnvInject] - Variables injected successfully. 15:45:20 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins17383011336337925576.sh 15:45:20 ---> tox-run.sh 15:45:20 + PATH=/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:45:20 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:45:20 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 15:45:20 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 15:45:20 + source /home/jenkins/lf-env.sh 15:45:20 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:20 ++ mktemp -d /tmp/venv-XXXX 15:45:20 + lf_venv=/tmp/venv-g2c4 15:45:20 + local venv_file=/tmp/.os_lf_venv 15:45:20 + local python=python3 15:45:20 + local options 15:45:20 + local set_path=true 15:45:20 + local install_args= 15:45:20 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 15:45:20 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:20 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 15:45:20 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 15:45:20 + true 15:45:20 + case $1 in 15:45:20 + venv_file=/tmp/.toxenv 15:45:20 + shift 2 15:45:20 + true 15:45:20 + case $1 in 15:45:20 + shift 15:45:20 + break 15:45:20 + case $python in 15:45:20 + local pkg_list= 15:45:20 + [[ -d /opt/pyenv ]] 15:45:20 + echo 'Setup pyenv:' 15:45:20 Setup pyenv: 15:45:20 + export PYENV_ROOT=/opt/pyenv 15:45:20 + PYENV_ROOT=/opt/pyenv 15:45:20 + export PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 + PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 + pyenv versions 15:45:20 system 15:45:20 3.8.20 15:45:20 3.9.20 15:45:20 3.10.15 15:45:20 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:45:20 + command -v pyenv 15:45:20 ++ pyenv init - --no-rehash 15:45:20 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 15:45:20 for i in ${!paths[@]}; do 15:45:20 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 15:45:20 fi; done; 15:45:20 echo "${paths[*]}"'\'')" 15:45:20 export PATH="/opt/pyenv/shims:${PATH}" 15:45:20 export PYENV_SHELL=bash 15:45:20 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 15:45:20 pyenv() { 15:45:20 local command 15:45:20 command="${1:-}" 15:45:20 if [ "$#" -gt 0 ]; then 15:45:20 shift 15:45:20 fi 15:45:20 15:45:20 case "$command" in 15:45:20 rehash|shell) 15:45:20 eval "$(pyenv "sh-$command" "$@")" 15:45:20 ;; 15:45:20 *) 15:45:20 command pyenv "$command" "$@" 15:45:20 ;; 15:45:20 esac 15:45:20 }' 15:45:20 +++ bash --norc -ec 'IFS=:; paths=($PATH); 15:45:20 for i in ${!paths[@]}; do 15:45:20 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 15:45:20 fi; done; 15:45:20 echo "${paths[*]}"' 15:45:20 ++ PATH=/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 ++ export PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 ++ PATH=/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:20 ++ export PYENV_SHELL=bash 15:45:20 ++ PYENV_SHELL=bash 15:45:20 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 15:45:20 +++ complete -F _pyenv pyenv 15:45:20 ++ lf-pyver python3 15:45:20 ++ local py_version_xy=python3 15:45:20 ++ local py_version_xyz= 15:45:20 ++ pyenv versions 15:45:20 ++ sed 's/^[ *]* //' 15:45:20 ++ awk '{ print $1 }' 15:45:20 ++ local command 15:45:20 ++ command=versions 15:45:20 ++ grep -E '^[0-9.]*[0-9]$' 15:45:20 ++ '[' 1 -gt 0 ']' 15:45:20 ++ shift 15:45:20 ++ case "$command" in 15:45:20 ++ command pyenv versions 15:45:20 ++ [[ ! -s /tmp/.pyenv_versions ]] 15:45:20 +++ grep '^3' /tmp/.pyenv_versions 15:45:20 +++ sort -V 15:45:20 +++ tail -n 1 15:45:20 ++ py_version_xyz=3.11.10 15:45:20 ++ [[ -z 3.11.10 ]] 15:45:20 ++ echo 3.11.10 15:45:20 ++ return 0 15:45:20 + pyenv local 3.11.10 15:45:20 + local command 15:45:20 + command=local 15:45:20 + '[' 2 -gt 0 ']' 15:45:20 + shift 15:45:20 + case "$command" in 15:45:20 + command pyenv local 3.11.10 15:45:20 + for arg in "$@" 15:45:20 + case $arg in 15:45:20 + pkg_list+='tox ' 15:45:20 + for arg in "$@" 15:45:20 + case $arg in 15:45:20 + pkg_list+='virtualenv ' 15:45:20 + for arg in "$@" 15:45:20 + case $arg in 15:45:20 + pkg_list+='urllib3~=1.26.15 ' 15:45:20 + [[ -f /tmp/.toxenv ]] 15:45:20 ++ cat /tmp/.toxenv 15:45:20 + lf_venv=/tmp/venv-ylsG 15:45:20 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ylsG from' file:/tmp/.toxenv 15:45:20 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ylsG from file:/tmp/.toxenv 15:45:20 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 15:45:20 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:45:20 + local 'pip_opts=--upgrade --quiet' 15:45:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 15:45:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 15:45:20 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 15:45:20 + [[ -n '' ]] 15:45:20 + [[ -n '' ]] 15:45:20 + lf-venv-pip-install /tmp/venv-ylsG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:20 + local venv_python=/tmp/venv-ylsG/bin/python3 15:45:20 + shift 15:45:20 + local upstream=https://pypi.org/simple 15:45:20 + /tmp/venv-ylsG/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 15:45:21 + return 0 15:45:21 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 15:45:21 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 15:45:21 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 15:45:21 + lf-venv-pip-install /tmp/venv-ylsG/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:45:21 + local venv_python=/tmp/venv-ylsG/bin/python3 15:45:21 + shift 15:45:21 + local upstream=https://pypi.org/simple 15:45:21 + /tmp/venv-ylsG/bin/python3 -m pip install --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org --upgrade-strategy eager tox virtualenv urllib3~=1.26.15 15:45:22 + return 0 15:45:22 + type python3 15:45:22 + true 15:45:22 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-ylsG/bin to PATH' 15:45:22 lf-activate-venv(): INFO: Adding /tmp/venv-ylsG/bin to PATH 15:45:22 + PATH=/tmp/venv-ylsG/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:22 + return 0 15:45:22 + [[ -d /opt/pyenv ]] 15:45:22 + echo '---> Setting up pyenv' 15:45:22 ---> Setting up pyenv 15:45:22 + export PYENV_ROOT=/opt/pyenv 15:45:22 + PYENV_ROOT=/opt/pyenv 15:45:22 + export PATH=/opt/pyenv/bin:/tmp/venv-ylsG/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:22 + PATH=/opt/pyenv/bin:/tmp/venv-ylsG/bin:/opt/pyenv/shims:/opt/pyenv/bin:/home/jenkins/.local/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin 15:45:22 ++ pwd 15:45:22 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 15:45:22 + export PYTHONPATH 15:45:22 + export TOX_TESTENV_PASSENV=PYTHONPATH 15:45:22 + TOX_TESTENV_PASSENV=PYTHONPATH 15:45:22 + tox --version 15:45:23 4.64.9 from /tmp/venv-ylsG/lib/python3.11/site-packages/tox/__init__.py 15:45:23 + PARALLEL=True 15:45:23 + TOX_OPTIONS_LIST= 15:45:23 + [[ -n '' ]] 15:45:23 + case ${PARALLEL,,} in 15:45:23 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 15:45:23 + tox --parallel auto --parallel-live 15:45:23 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 15:45:25 checkbashisms: freeze> python -m pip freeze --all 15:45:25 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:25 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 15:45:25 docs: install_deps> python -I -m pip install -r docs/requirements.txt 15:45:25 checkbashisms: pip==26.2.1,setuptools==84.0.0 15:45:25 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:45:25 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'command checkbashisms>/dev/null || sudo yum install -y devscripts-checkbashisms || sudo yum install -y devscripts-minimal || sudo yum install -y devscripts || sudo yum install -y https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Everything/x86_64/os/Packages/d/devscripts-checkbashisms-2.19.6-2.fc31.x86_64.rpm || (echo "checkbashisms command not found - please install it (e.g. sudo apt-get install devscripts | yum install devscripts-minimal )" >&2 && exit 1)' 15:45:25 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 15:45:26 checkbashisms: OK ✔ in 3.28 seconds 15:45:26 pre-commit: install_deps> python -I -m pip install pre-commit 15:45:29 pre-commit: freeze> python -m pip freeze --all 15:45:29 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.3,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 15:45:29 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 15:45:29 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sh -c 'which cpan || sudo yum install -y perl-CPAN || (echo "cpan command not found - please install it (e.g. sudo apt-get install perl-modules | yum install perl-CPAN )" >&2 && exit 1)' 15:45:29 /usr/bin/cpan 15:45:29 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 15:45:29 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 15:45:30 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 15:45:31 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 15:45:31 buildcontroller: freeze> python -m pip freeze --all 15:45:31 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:31 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 15:45:31 + update-java-alternatives -l 15:45:31 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 15:45:31 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 15:45:31 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 15:45:31 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 15:45:32 update-alternatives: error: no alternatives for jaotc 15:45:32 update-alternatives: error: no alternatives for rmic 15:45:32 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:45:32 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 15:45:32 java -version 15:45:32 + JAVA_VER=21.0 15:45:32 + echo 21.0 15:45:32 21.0 15:45:32 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 15:45:32 + javac -version 15:45:32 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 15:45:32 21.0 15:45:32 No java21 or newer available 15:45:32 + JAVAC_VER=21.0 15:45:32 + echo 21.0 15:45:32 + [ 21.0 -ge 21 ] 15:45:32 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 15:45:32 + echo No java21 or newer available 15:45:32 + exit 1 15:45:32 buildcontroller: exit 1 (0.57 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2693 15:45:32 buildcontroller: FAIL ✖ in 8.96 seconds 15:45:32 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 15:45:33 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 15:45:34 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 15:45:34 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 15:45:34 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 15:45:35 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 15:45:35 pylint: freeze> python -m pip freeze --all 15:45:35 pylint: astroid==4.3.3,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.3,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 15:45:35 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + 15:45:36 docs-linkcheck: freeze> python -m pip freeze --all 15:45:36 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 15:45:36 [INFO] Once installed this environment will be reused. 15:45:36 [INFO] This may take a few minutes... 15:45:37 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 15:45:37 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 15:45:37 docs: freeze> python -m pip freeze --all 15:45:37 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 15:45:37 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 15:45:40 docs: OK ✔ in 17.26 seconds 15:45:40 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:41 docs-linkcheck: OK ✔ in 17.69 seconds 15:45:41 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:41 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 15:45:41 [INFO] Once installed this environment will be reused. 15:45:41 [INFO] This may take a few minutes... 15:45:46 [INFO] Installing environment for https://github.com/hhatto/autopep8. 15:45:46 [INFO] Once installed this environment will be reused. 15:45:46 [INFO] This may take a few minutes... 15:45:47 build_karaf_tests221: freeze> python -m pip freeze --all 15:45:47 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:47 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:47 build karaf in karaf221 with ./karaf221.env 15:45:47 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 15:45:47 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:47 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:47 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3323 15:45:47 build_karaf_tests221: FAIL ✖ in 6.46 seconds 15:45:47 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:47 build_karaf_tests71: freeze> python -m pip freeze --all 15:45:47 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:47 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:47 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 15:45:47 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:47 build karaf in karaf71 with ./karaf71.env 15:45:47 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:47 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3346 15:45:47 build_karaf_tests71: FAIL ✖ in 6.41 seconds 15:45:47 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:49 [INFO] Installing environment for https://github.com/perltidy/perltidy. 15:45:49 [INFO] Once installed this environment will be reused. 15:45:49 [INFO] This may take a few minutes... 15:45:51 ************* Module 2.2.1.test12_end2end 15:45:51 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 ************* Module common.test_utils 15:45:51 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 15:45:51 15:45:51 ----------------------------------- 15:45:51 Your code has been rated at 9.99/10 15:45:51 15:45:53 pylint: exit 1 (17.47 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> find transportpce_tests/ -name '*.py' -exec pylint --fail-under=10 --max-line-length=120 --disable=missing-docstring,import-error --disable=fixme --disable=duplicate-code '--module-rgx=([a-z0-9_]+$)|([0-9.]{1,30}$)' '--method-rgx=(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$' '--variable-rgx=[a-zA-Z_][a-zA-Z0-9_]{1,30}$' '{}' + pid=3158 15:45:53 pylint: FAIL ✖ in 20.74 seconds 15:45:53 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:53 build_karaf_tests200: freeze> python -m pip freeze --all 15:45:53 buildlighty: freeze> python -m pip freeze --all 15:45:53 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:53 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 15:45:53 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 15:45:53 ./build_karaf_for_tests.sh: 22: mvn: not found 15:45:53 build karaf in karafoc200 with ./karafoc200.env 15:45:53 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 15:45:53 build_karaf_tests200: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3395 15:45:53 build_karaf_tests200: FAIL ✖ in 6.52 seconds 15:45:53 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:45:53 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:45:53 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 15:45:53 ./build.sh: 7: mvn: not found 15:45:53 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 15:45:53 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3412 15:45:56 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 15:45:56 [INFO] Once installed this environment will be reused. 15:45:56 [INFO] This may take a few minutes... 15:46:00 buildlighty: FAIL ✖ in 6.27 seconds 15:46:00 sims: freeze> python -m pip freeze --all 15:46:00 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 15:46:00 [INFO] Once installed this environment will be reused. 15:46:00 [INFO] This may take a few minutes... 15:46:00 sims: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:46:00 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 15:46:00 Using lighynode version 22.1.0.7 15:46:00 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 15:46:04 trim trailing whitespace.................................................Passed 15:46:04 fix end of files.........................................................Passed 15:46:04 check for added large files..............................................Passed 15:46:04 check for merge conflicts................................................Passed 15:46:04 check for case conflicts.................................................Passed 15:46:05 check json...............................................................Passed 15:46:05 mixed line ending........................................................Passed 15:46:05 Tabs remover.............................................................Passed 15:46:05 autopep8.................................................................Passed 15:46:07 perltidy.................................................................Passed 15:46:08 ShellCheck v0.11.0.......................................................Passed 15:46:12 prettier.................................................................Passed 15:46:14 yamllint.................................................................Passed 15:46:14 sims: OK ✔ in 11.76 seconds 15:46:14 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 15:46:14 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 15:46:14 [INFO] Once installed this environment will be reused. 15:46:14 [INFO] This may take a few minutes... 15:46:22 gitlint..................................................................Passed 15:46:40 pre-commit: OK ✔ in 55.8 seconds 15:46:40 testsPCE: freeze> python -m pip freeze --all 15:46:40 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,click==8.5.0,contourpy==1.3.3,cryptography==3.3.2,cycler==0.12.1,dict2xml==1.7.8,Flask==2.1.3,Flask-Injector==0.14.0,fonttools==4.66.1,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.0,injector==0.24.0,invoke==3.0.3,itsdangerous==2.2.0,Jinja2==3.1.6,kiwisolver==1.5.1,lxml==6.1.3,MarkupSafe==3.0.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 15:46:40 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 15:46:40 pytest -q transportpce_tests/pce/test01_pce.py 15:48:41 EEEEEEEEEEEEEEEEEEEE [100%] 15:48:44 ==================================== ERRORS ==================================== 15:48:44 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 15:48:44 15:48:44 cls = 15:48:44 15:48:44 @classmethod 15:48:44 def setUpClass(cls): 15:48:44 # pylint: disable=bare-except 15:48:44 sample_files_parsed = False 15:48:44 time.sleep(20) 15:48:44 try: 15:48:44 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:44 "..", "..", "sample_configs", "honeynode-topo.json") 15:48:44 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 15:48:44 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 15:48:44 15:48:44 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:44 "..", "..", "sample_configs", "NW-simple-topology.json") 15:48:44 15:48:44 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 15:48:44 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 15:48:44 15:48:44 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:44 "..", "..", "sample_configs", "NW-for-test-5-4.json") 15:48:44 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 15:48:44 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 15:48:44 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 15:48:44 "..", "..", "sample_configs", "pce_portmapping_221.json") 15:48:44 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 15:48:44 cls.port_mapping_data = port_mapping.read() 15:48:44 sample_files_parsed = True 15:48:44 except PermissionError as err: 15:48:44 print("Permission Error when trying to read sample files\n", err) 15:48:44 sys.exit(2) 15:48:44 except FileNotFoundError as err: 15:48:44 print("File Not found Error when trying to read sample files\n", err) 15:48:44 sys.exit(2) 15:48:44 except: 15:48:44 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 15:48:44 sys.exit(2) 15:48:44 finally: 15:48:44 if sample_files_parsed: 15:48:44 print("sample files content loaded") 15:48:44 15:48:44 > cls.processes = test_utils.start_tpce() 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 15:48:44 transportpce_tests/pce/test01_pce.py:93: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 def start_tpce(): 15:48:44 if 'NO_ODL_STARTUP' in os.environ: 15:48:44 print('No OpenDaylight instance to start!') 15:48:44 return [] 15:48:44 print('starting OpenDaylight...') 15:48:44 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:48:44 process = start_lighty() 15:48:44 else: 15:48:44 process = start_karaf() 15:48:44 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:48:44 print('OpenDaylight started !') 15:48:44 else: 15:48:44 print('OpenDaylight failed to start !') 15:48:44 shutdown_process(process) 15:48:44 for pid in process_list: 15:48:44 shutdown_process(pid) 15:48:44 > sys.exit(1) 15:48:44 E SystemExit: 1 15:48:44 15:48:44 transportpce_tests/common/test_utils.py:234: SystemExit 15:48:44 ---------------------------- Captured stdout setup ----------------------------- 15:48:44 sample files content loaded 15:48:44 starting OpenDaylight... 15:48:44 starting KARAF (karaf) TransportPCE build... 15:48:44 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:48:44 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368a660> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368bc40> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368b420> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4075b1c040> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368b1a0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368bc40> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f40730e1da0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073673ce0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073673a60> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073673ce0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f40730e1940> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f407368b1a0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073673a60> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f40730e2980> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073673a60> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073688400> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f40730e22a0> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073688400> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 15:48:44 15:48:44 cls = 15:48:44 func = . at 0x7f4073688180> 15:48:44 when = 'setup' 15:48:44 reraise = (, ) 15:48:44 15:48:44 @classmethod 15:48:44 def from_call( 15:48:44 cls, 15:48:44 func: Callable[[], TResult], 15:48:44 when: Literal["collect", "setup", "call", "teardown"], 15:48:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:48:44 ) -> CallInfo[TResult]: 15:48:44 """Call func, wrapping the result in a CallInfo. 15:48:44 15:48:44 :param func: 15:48:44 The function to call. Called without arguments. 15:48:44 :type func: Callable[[], _pytest.runner.TResult] 15:48:44 :param when: 15:48:44 The phase in which the function is called. 15:48:44 :param reraise: 15:48:44 Exception or exceptions that shall propagate if raised by the 15:48:44 function, instead of being wrapped in the CallInfo. 15:48:44 """ 15:48:44 excinfo = None 15:48:44 instant = timing.Instant() 15:48:44 try: 15:48:44 > result: TResult | None = func() 15:48:44 ^^^^^^ 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:48:44 lambda: runtest_hook(item=item, **kwds), 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:48:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:48:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:48:44 yield 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:48:44 return (yield) 15:48:44 ^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:48:44 item.session._setupstate.setup(item) 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:48:44 col.setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:48:44 super().setup() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:48:44 self._request._fillfixtures() 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:48:44 item.funcargs[argname] = self.getfixturevalue(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:48:44 fixturedef = self._get_active_fixturedef(argname) 15:48:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:48:44 fixturedef.execute(request=subrequest) 15:48:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:48:44 15:48:44 self = 15:48:44 request = > 15:48:44 15:48:44 def execute(self, request: SubRequest) -> FixtureValue: 15:48:44 """Return the value of this fixture, executing it if not cached.""" 15:48:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:48:44 # This needs to be done before checking if we have a cached value, since 15:48:44 # if a dependent fixture has their cache invalidated, e.g. due to 15:48:44 # parametrization, they finalize themselves and fixtures depending on it 15:48:44 # (which will likely include this fixture) setting `self.cached_result = None`. 15:48:44 # See #4871 15:48:44 requested_fixtures_that_should_finalize_us = [] 15:48:44 for argname in self.argnames: 15:48:44 fixturedef = request._get_active_fixturedef(argname) 15:48:44 # Saves requested fixtures in a list so we later can add our finalizer 15:48:44 # to them, ensuring that if a requested fixture gets torn down we get torn 15:48:44 # down first. This is generally handled by SetupState, but still currently 15:48:44 # needed when this fixture is not parametrized but depends on a parametrized 15:48:44 # fixture. 15:48:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:48:44 15:48:44 # Check for (and return) cached value/exception. 15:48:44 if self.cached_result is not None: 15:48:44 request_cache_key = self.cache_key(request) 15:48:44 cache_key = self.cached_result[1] 15:48:44 try: 15:48:44 # Attempt to make a normal == check: this might fail for objects 15:48:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:48:44 cache_hit = bool(request_cache_key == cache_key) 15:48:44 except (ValueError, RuntimeError): 15:48:44 # If the comparison raises, use 'is' as fallback. 15:48:44 cache_hit = request_cache_key is cache_key 15:48:44 15:48:44 if cache_hit: 15:48:44 if self.cached_result[2] is not None: 15:48:44 exc, exc_tb = self.cached_result[2] 15:48:44 raise exc.with_traceback(exc_tb) 15:48:44 else: 15:48:44 return self.cached_result[0] 15:48:44 # We have a previous but differently parametrized fixture instance 15:48:44 # so we need to tear it down before creating a new one. 15:48:44 self.finish(request) 15:48:44 assert self.cached_result is None 15:48:44 15:48:44 # Add finalizer to requested fixtures we saved previously. 15:48:44 # We make sure to do this after checking for cached value to avoid 15:48:44 # adding our finalizer multiple times. (#12135) 15:48:44 finalizer = functools.partial(self.finish, request=request) 15:48:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:48:44 parent_fixture.addfinalizer(finalizer) 15:48:44 15:48:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:48:44 # which is executed last. 15:48:44 > assert not self._finalizers 15:48:44 ^^^^^^^^^^^^^^^^^^^^ 15:48:44 E AssertionError 15:48:44 15:48:44 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:48:44 =========================== short test summary info ============================ 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 15:48:44 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 15:48:44 20 errors in 123.76s (0:02:03) 15:48:44 testsPCE: exit 1 (124.06 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4171 15:48:44 testsPCE: FAIL ✖ in 2 minutes 50.73 seconds 15:48:44 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:48:50 tests_tapi: freeze> python -m pip freeze --all 15:48:51 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:48:51 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 15:48:51 using environment variables from ./karaf221.env 15:48:51 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 15:50:31 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:50:42 ==================================== ERRORS ==================================== 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 15:50:42 @classmethod 15:50:42 def setUpClass(cls): 15:50:42 cls.init_failed = False 15:50:42 os.environ['JAVA_MIN_MEM'] = '1024M' 15:50:42 os.environ['JAVA_MAX_MEM'] = '4096M' 15:50:42 > cls.processes = test_utils.start_tpce() 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 15:50:42 transportpce_tests/tapi/test01_abstracted_topology.py:148: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 def start_tpce(): 15:50:42 if 'NO_ODL_STARTUP' in os.environ: 15:50:42 print('No OpenDaylight instance to start!') 15:50:42 return [] 15:50:42 print('starting OpenDaylight...') 15:50:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:50:42 process = start_lighty() 15:50:42 else: 15:50:42 process = start_karaf() 15:50:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:50:42 print('OpenDaylight started !') 15:50:42 else: 15:50:42 print('OpenDaylight failed to start !') 15:50:42 shutdown_process(process) 15:50:42 for pid in process_list: 15:50:42 shutdown_process(pid) 15:50:42 > sys.exit(1) 15:50:42 E SystemExit: 1 15:50:42 15:50:42 transportpce_tests/common/test_utils.py:234: SystemExit 15:50:42 ---------------------------- Captured stdout setup ----------------------------- 15:50:42 starting OpenDaylight... 15:50:42 starting KARAF (karaf221) TransportPCE build... 15:50:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3b9c0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f8fc40> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc23588b060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f8f100> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3b880> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f8f6a0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a0c0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76020> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a3e0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b765c0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f39e40> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f8f100> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f39e40> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc236623060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75bc0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75bc0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b74d60> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b747c0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76ac0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75300> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76ac0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75a80> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76fc0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75e40> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76020> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76340> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b76340> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b77240> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b77420> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b77560> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b763e0> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b75a80> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233f3a660> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 15:50:42 15:50:42 cls = 15:50:42 func = . at 0x7fc233b77060> 15:50:42 when = 'setup' 15:50:42 reraise = (, ) 15:50:42 15:50:42 @classmethod 15:50:42 def from_call( 15:50:42 cls, 15:50:42 func: Callable[[], TResult], 15:50:42 when: Literal["collect", "setup", "call", "teardown"], 15:50:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:50:42 ) -> CallInfo[TResult]: 15:50:42 """Call func, wrapping the result in a CallInfo. 15:50:42 15:50:42 :param func: 15:50:42 The function to call. Called without arguments. 15:50:42 :type func: Callable[[], _pytest.runner.TResult] 15:50:42 :param when: 15:50:42 The phase in which the function is called. 15:50:42 :param reraise: 15:50:42 Exception or exceptions that shall propagate if raised by the 15:50:42 function, instead of being wrapped in the CallInfo. 15:50:42 """ 15:50:42 excinfo = None 15:50:42 instant = timing.Instant() 15:50:42 try: 15:50:42 > result: TResult | None = func() 15:50:42 ^^^^^^ 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:50:42 lambda: runtest_hook(item=item, **kwds), 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:50:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:50:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:50:42 yield 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:50:42 return (yield) 15:50:42 ^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:50:42 item.session._setupstate.setup(item) 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:50:42 col.setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:50:42 super().setup() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:50:42 self._request._fillfixtures() 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:50:42 item.funcargs[argname] = self.getfixturevalue(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:50:42 fixturedef = self._get_active_fixturedef(argname) 15:50:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:50:42 fixturedef.execute(request=subrequest) 15:50:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:50:42 15:50:42 self = 15:50:42 request = > 15:50:42 15:50:42 def execute(self, request: SubRequest) -> FixtureValue: 15:50:42 """Return the value of this fixture, executing it if not cached.""" 15:50:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:50:42 # This needs to be done before checking if we have a cached value, since 15:50:42 # if a dependent fixture has their cache invalidated, e.g. due to 15:50:42 # parametrization, they finalize themselves and fixtures depending on it 15:50:42 # (which will likely include this fixture) setting `self.cached_result = None`. 15:50:42 # See #4871 15:50:42 requested_fixtures_that_should_finalize_us = [] 15:50:42 for argname in self.argnames: 15:50:42 fixturedef = request._get_active_fixturedef(argname) 15:50:42 # Saves requested fixtures in a list so we later can add our finalizer 15:50:42 # to them, ensuring that if a requested fixture gets torn down we get torn 15:50:42 # down first. This is generally handled by SetupState, but still currently 15:50:42 # needed when this fixture is not parametrized but depends on a parametrized 15:50:42 # fixture. 15:50:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:50:42 15:50:42 # Check for (and return) cached value/exception. 15:50:42 if self.cached_result is not None: 15:50:42 request_cache_key = self.cache_key(request) 15:50:42 cache_key = self.cached_result[1] 15:50:42 try: 15:50:42 # Attempt to make a normal == check: this might fail for objects 15:50:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:50:42 cache_hit = bool(request_cache_key == cache_key) 15:50:42 except (ValueError, RuntimeError): 15:50:42 # If the comparison raises, use 'is' as fallback. 15:50:42 cache_hit = request_cache_key is cache_key 15:50:42 15:50:42 if cache_hit: 15:50:42 if self.cached_result[2] is not None: 15:50:42 exc, exc_tb = self.cached_result[2] 15:50:42 raise exc.with_traceback(exc_tb) 15:50:42 else: 15:50:42 return self.cached_result[0] 15:50:42 # We have a previous but differently parametrized fixture instance 15:50:42 # so we need to tear it down before creating a new one. 15:50:42 self.finish(request) 15:50:42 assert self.cached_result is None 15:50:42 15:50:42 # Add finalizer to requested fixtures we saved previously. 15:50:42 # We make sure to do this after checking for cached value to avoid 15:50:42 # adding our finalizer multiple times. (#12135) 15:50:42 finalizer = functools.partial(self.finish, request=request) 15:50:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:50:42 parent_fixture.addfinalizer(finalizer) 15:50:42 15:50:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:50:42 # which is executed last. 15:50:42 > assert not self._finalizers 15:50:42 ^^^^^^^^^^^^^^^^^^^^ 15:50:42 E AssertionError 15:50:42 15:50:42 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:50:42 =========================== short test summary info ============================ 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 15:50:42 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 15:50:42 51 errors in 111.17s (0:01:51) 15:50:42 tests_tapi: exit 1 (111.47 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4247 15:50:43 tests_tapi: FAIL ✖ in 1 minute 58.09 seconds 15:50:43 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:50:43 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:50:49 tests200: freeze> python -m pip freeze --all 15:50:49 tests221: freeze> python -m pip freeze --all 15:50:49 tests200: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:50:49 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 15:50:49 using environment variables from ./karafoc200.env 15:50:49 pytest -q transportpce_tests/oc200/test01_portmapping.py 15:50:49 tests221: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:50:49 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 15:50:49 using environment variables from ./karaf221.env 15:50:49 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 15:52:30 EEEEEEEEEEEEEEEEEEE [100%] 15:52:31 ==================================== ERRORS ==================================== 15:52:31 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 15:52:31 15:52:31 cls = 15:52:31 15:52:31 @classmethod 15:52:31 def setUpClass(cls): 15:52:31 > cls.processes = test_utils.start_tpce() 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 15:52:31 transportpce_tests/oc200/test01_portmapping.py:29: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 def start_tpce(): 15:52:31 if 'NO_ODL_STARTUP' in os.environ: 15:52:31 print('No OpenDaylight instance to start!') 15:52:31 return [] 15:52:31 print('starting OpenDaylight...') 15:52:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:52:31 process = start_lighty() 15:52:31 else: 15:52:31 process = start_karaf() 15:52:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:52:31 print('OpenDaylight started !') 15:52:31 else: 15:52:31 print('OpenDaylight failed to start !') 15:52:31 shutdown_process(process) 15:52:31 for pid in process_list: 15:52:31 shutdown_process(pid) 15:52:31 > sys.exit(1) 15:52:31 E SystemExit: 1 15:52:31 15:52:31 transportpce_tests/common/test_utils.py:234: SystemExit 15:52:31 ---------------------------- Captured stdout setup ----------------------------- 15:52:31 starting OpenDaylight... 15:52:31 starting KARAF (karafoc200) TransportPCE build... 15:52:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f5762c17420> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f576051bec0> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f5761ccb600> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f57604f7740> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f5762c17420> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f5761ccb600> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f576051b880> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f576051b6a0> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:52:31 15:52:31 cls = 15:52:31 func = . at 0x7f576051b600> 15:52:31 when = 'setup' 15:52:31 reraise = (, ) 15:52:31 15:52:31 @classmethod 15:52:31 def from_call( 15:52:31 cls, 15:52:31 func: Callable[[], TResult], 15:52:31 when: Literal["collect", "setup", "call", "teardown"], 15:52:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:31 ) -> CallInfo[TResult]: 15:52:31 """Call func, wrapping the result in a CallInfo. 15:52:31 15:52:31 :param func: 15:52:31 The function to call. Called without arguments. 15:52:31 :type func: Callable[[], _pytest.runner.TResult] 15:52:31 :param when: 15:52:31 The phase in which the function is called. 15:52:31 :param reraise: 15:52:31 Exception or exceptions that shall propagate if raised by the 15:52:31 function, instead of being wrapped in the CallInfo. 15:52:31 """ 15:52:31 excinfo = None 15:52:31 instant = timing.Instant() 15:52:31 try: 15:52:31 > result: TResult | None = func() 15:52:31 ^^^^^^ 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:31 lambda: runtest_hook(item=item, **kwds), 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:31 yield 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:31 return (yield) 15:52:31 ^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:31 item.session._setupstate.setup(item) 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:31 col.setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:31 super().setup() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:31 self._request._fillfixtures() 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:31 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:31 fixturedef = self._get_active_fixturedef(argname) 15:52:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:31 fixturedef.execute(request=subrequest) 15:52:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:31 15:52:31 self = 15:52:31 request = > 15:52:31 15:52:31 def execute(self, request: SubRequest) -> FixtureValue: 15:52:31 """Return the value of this fixture, executing it if not cached.""" 15:52:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:31 # This needs to be done before checking if we have a cached value, since 15:52:31 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:31 # parametrization, they finalize themselves and fixtures depending on it 15:52:31 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:31 # See #4871 15:52:31 requested_fixtures_that_should_finalize_us = [] 15:52:31 for argname in self.argnames: 15:52:31 fixturedef = request._get_active_fixturedef(argname) 15:52:31 # Saves requested fixtures in a list so we later can add our finalizer 15:52:31 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:31 # down first. This is generally handled by SetupState, but still currently 15:52:31 # needed when this fixture is not parametrized but depends on a parametrized 15:52:31 # fixture. 15:52:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:31 15:52:31 # Check for (and return) cached value/exception. 15:52:31 if self.cached_result is not None: 15:52:31 request_cache_key = self.cache_key(request) 15:52:31 cache_key = self.cached_result[1] 15:52:31 try: 15:52:31 # Attempt to make a normal == check: this might fail for objects 15:52:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:31 cache_hit = bool(request_cache_key == cache_key) 15:52:31 except (ValueError, RuntimeError): 15:52:31 # If the comparison raises, use 'is' as fallback. 15:52:31 cache_hit = request_cache_key is cache_key 15:52:31 15:52:31 if cache_hit: 15:52:31 if self.cached_result[2] is not None: 15:52:31 exc, exc_tb = self.cached_result[2] 15:52:31 raise exc.with_traceback(exc_tb) 15:52:31 else: 15:52:31 return self.cached_result[0] 15:52:31 # We have a previous but differently parametrized fixture instance 15:52:31 # so we need to tear it down before creating a new one. 15:52:31 self.finish(request) 15:52:31 assert self.cached_result is None 15:52:31 15:52:31 # Add finalizer to requested fixtures we saved previously. 15:52:31 # We make sure to do this after checking for cached value to avoid 15:52:31 # adding our finalizer multiple times. (#12135) 15:52:31 finalizer = functools.partial(self.finish, request=request) 15:52:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:31 parent_fixture.addfinalizer(finalizer) 15:52:31 15:52:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:31 # which is executed last. 15:52:31 > assert not self._finalizers 15:52:31 ^^^^^^^^^^^^^^^^^^^^ 15:52:31 E AssertionError 15:52:31 15:52:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:31 =========================== short test summary info ============================ 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 15:52:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:52:31 10 errors in 101.95s (0:01:41) 15:52:31 tests200: exit 1 (102.24 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4391 15:52:32 Etests200: FAIL ✖ in 1 minute 49.34 seconds 15:52:32 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:52:32 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:52:36 ==================================== ERRORS ==================================== 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 15:52:36 15:52:36 cls = 15:52:36 15:52:36 @classmethod 15:52:36 def setUpClass(cls): 15:52:36 > cls.processes = test_utils.start_tpce() 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 15:52:36 transportpce_tests/2.2.1/test01_portmapping.py:33: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 def start_tpce(): 15:52:36 if 'NO_ODL_STARTUP' in os.environ: 15:52:36 print('No OpenDaylight instance to start!') 15:52:36 return [] 15:52:36 print('starting OpenDaylight...') 15:52:36 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:52:36 process = start_lighty() 15:52:36 else: 15:52:36 process = start_karaf() 15:52:36 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:52:36 print('OpenDaylight started !') 15:52:36 else: 15:52:36 print('OpenDaylight failed to start !') 15:52:36 shutdown_process(process) 15:52:36 for pid in process_list: 15:52:36 shutdown_process(pid) 15:52:36 > sys.exit(1) 15:52:36 E SystemExit: 1 15:52:36 15:52:36 transportpce_tests/common/test_utils.py:234: SystemExit 15:52:36 ---------------------------- Captured stdout setup ----------------------------- 15:52:36 starting OpenDaylight... 15:52:36 starting KARAF (karaf221) TransportPCE build... 15:52:36 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:52:36 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b2700> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f6d40> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab18fbb240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab181cf060> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b2200> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab18fbb240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7ba0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab18fbb240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f77e0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7ce0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f6e80> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab18fbb240> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f6520> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f5b20> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7ba0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f6d40> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b13a0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f7d80> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f5b20> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1120> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1300> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f5b20> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab16964180> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1120> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168f5b20> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab169644a0> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1120> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab16965800> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab16965440> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1120> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab16965580> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 15:52:36 15:52:36 cls = 15:52:36 func = . at 0x7fab168b1120> 15:52:36 when = 'setup' 15:52:36 reraise = (, ) 15:52:36 15:52:36 @classmethod 15:52:36 def from_call( 15:52:36 cls, 15:52:36 func: Callable[[], TResult], 15:52:36 when: Literal["collect", "setup", "call", "teardown"], 15:52:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:52:36 ) -> CallInfo[TResult]: 15:52:36 """Call func, wrapping the result in a CallInfo. 15:52:36 15:52:36 :param func: 15:52:36 The function to call. Called without arguments. 15:52:36 :type func: Callable[[], _pytest.runner.TResult] 15:52:36 :param when: 15:52:36 The phase in which the function is called. 15:52:36 :param reraise: 15:52:36 Exception or exceptions that shall propagate if raised by the 15:52:36 function, instead of being wrapped in the CallInfo. 15:52:36 """ 15:52:36 excinfo = None 15:52:36 instant = timing.Instant() 15:52:36 try: 15:52:36 > result: TResult | None = func() 15:52:36 ^^^^^^ 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:52:36 lambda: runtest_hook(item=item, **kwds), 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:52:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:52:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:52:36 yield 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:52:36 return (yield) 15:52:36 ^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:52:36 item.session._setupstate.setup(item) 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:52:36 col.setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:52:36 super().setup() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:52:36 self._request._fillfixtures() 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:52:36 item.funcargs[argname] = self.getfixturevalue(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:52:36 fixturedef = self._get_active_fixturedef(argname) 15:52:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:52:36 fixturedef.execute(request=subrequest) 15:52:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:52:36 15:52:36 self = 15:52:36 request = > 15:52:36 15:52:36 def execute(self, request: SubRequest) -> FixtureValue: 15:52:36 """Return the value of this fixture, executing it if not cached.""" 15:52:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:52:36 # This needs to be done before checking if we have a cached value, since 15:52:36 # if a dependent fixture has their cache invalidated, e.g. due to 15:52:36 # parametrization, they finalize themselves and fixtures depending on it 15:52:36 # (which will likely include this fixture) setting `self.cached_result = None`. 15:52:36 # See #4871 15:52:36 requested_fixtures_that_should_finalize_us = [] 15:52:36 for argname in self.argnames: 15:52:36 fixturedef = request._get_active_fixturedef(argname) 15:52:36 # Saves requested fixtures in a list so we later can add our finalizer 15:52:36 # to them, ensuring that if a requested fixture gets torn down we get torn 15:52:36 # down first. This is generally handled by SetupState, but still currently 15:52:36 # needed when this fixture is not parametrized but depends on a parametrized 15:52:36 # fixture. 15:52:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:52:36 15:52:36 # Check for (and return) cached value/exception. 15:52:36 if self.cached_result is not None: 15:52:36 request_cache_key = self.cache_key(request) 15:52:36 cache_key = self.cached_result[1] 15:52:36 try: 15:52:36 # Attempt to make a normal == check: this might fail for objects 15:52:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:52:36 cache_hit = bool(request_cache_key == cache_key) 15:52:36 except (ValueError, RuntimeError): 15:52:36 # If the comparison raises, use 'is' as fallback. 15:52:36 cache_hit = request_cache_key is cache_key 15:52:36 15:52:36 if cache_hit: 15:52:36 if self.cached_result[2] is not None: 15:52:36 exc, exc_tb = self.cached_result[2] 15:52:36 raise exc.with_traceback(exc_tb) 15:52:36 else: 15:52:36 return self.cached_result[0] 15:52:36 # We have a previous but differently parametrized fixture instance 15:52:36 # so we need to tear it down before creating a new one. 15:52:36 self.finish(request) 15:52:36 assert self.cached_result is None 15:52:36 15:52:36 # Add finalizer to requested fixtures we saved previously. 15:52:36 # We make sure to do this after checking for cached value to avoid 15:52:36 # adding our finalizer multiple times. (#12135) 15:52:36 finalizer = functools.partial(self.finish, request=request) 15:52:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:52:36 parent_fixture.addfinalizer(finalizer) 15:52:36 15:52:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:52:36 # which is executed last. 15:52:36 > assert not self._finalizers 15:52:36 ^^^^^^^^^^^^^^^^^^^^ 15:52:36 E AssertionError 15:52:36 15:52:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:52:36 =========================== short test summary info ============================ 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 15:52:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 15:52:36 35 errors in 106.46s (0:01:46) 15:52:36 tests221: exit 1 (106.75 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4402 15:52:36 tests221: FAIL ✖ in 1 minute 53.93 seconds 15:52:36 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 15:52:38 tests71: freeze> python -m pip freeze --all 15:52:38 tests71: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:52:38 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 15:52:38 using environment variables from ./karaf71.env 15:52:38 pytest -q transportpce_tests/7.1/test01_portmapping.py 15:52:43 tests_hybrid: freeze> python -m pip freeze --all 15:52:43 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.0,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 15:52:43 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 15:52:43 using environment variables from ./karaf221.env 15:52:43 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 15:54:19 EEEEEEEEEEEE [100%] 15:54:21 ==================================== ERRORS ==================================== 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 15:54:21 15:54:21 cls = 15:54:21 15:54:21 @classmethod 15:54:21 def setUpClass(cls): 15:54:21 > cls.processes = test_utils.start_tpce() 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 15:54:21 transportpce_tests/7.1/test01_portmapping.py:32: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 def start_tpce(): 15:54:21 if 'NO_ODL_STARTUP' in os.environ: 15:54:21 print('No OpenDaylight instance to start!') 15:54:21 return [] 15:54:21 print('starting OpenDaylight...') 15:54:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:54:21 process = start_lighty() 15:54:21 else: 15:54:21 process = start_karaf() 15:54:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:54:21 print('OpenDaylight started !') 15:54:21 else: 15:54:21 print('OpenDaylight failed to start !') 15:54:21 shutdown_process(process) 15:54:21 for pid in process_list: 15:54:21 shutdown_process(pid) 15:54:21 > sys.exit(1) 15:54:21 E SystemExit: 1 15:54:21 15:54:21 transportpce_tests/common/test_utils.py:234: SystemExit 15:54:21 ---------------------------- Captured stdout setup ----------------------------- 15:54:21 starting OpenDaylight... 15:54:21 starting KARAF (karaf71) TransportPCE build... 15:54:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a222a0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a23a60> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb8813b2e0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a23a60> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a237e0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a23880> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a236a0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a20900> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a236a0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a237e0> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 15:54:21 15:54:21 cls = 15:54:21 func = . at 0x7fbb85a20900> 15:54:21 when = 'setup' 15:54:21 reraise = (, ) 15:54:21 15:54:21 @classmethod 15:54:21 def from_call( 15:54:21 cls, 15:54:21 func: Callable[[], TResult], 15:54:21 when: Literal["collect", "setup", "call", "teardown"], 15:54:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:21 ) -> CallInfo[TResult]: 15:54:21 """Call func, wrapping the result in a CallInfo. 15:54:21 15:54:21 :param func: 15:54:21 The function to call. Called without arguments. 15:54:21 :type func: Callable[[], _pytest.runner.TResult] 15:54:21 :param when: 15:54:21 The phase in which the function is called. 15:54:21 :param reraise: 15:54:21 Exception or exceptions that shall propagate if raised by the 15:54:21 function, instead of being wrapped in the CallInfo. 15:54:21 """ 15:54:21 excinfo = None 15:54:21 instant = timing.Instant() 15:54:21 try: 15:54:21 > result: TResult | None = func() 15:54:21 ^^^^^^ 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:21 lambda: runtest_hook(item=item, **kwds), 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:21 yield 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:21 return (yield) 15:54:21 ^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:21 item.session._setupstate.setup(item) 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:21 col.setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:21 super().setup() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:21 self._request._fillfixtures() 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:21 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:21 fixturedef = self._get_active_fixturedef(argname) 15:54:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:21 fixturedef.execute(request=subrequest) 15:54:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:21 15:54:21 self = 15:54:21 request = > 15:54:21 15:54:21 def execute(self, request: SubRequest) -> FixtureValue: 15:54:21 """Return the value of this fixture, executing it if not cached.""" 15:54:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:21 # This needs to be done before checking if we have a cached value, since 15:54:21 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:21 # parametrization, they finalize themselves and fixtures depending on it 15:54:21 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:21 # See #4871 15:54:21 requested_fixtures_that_should_finalize_us = [] 15:54:21 for argname in self.argnames: 15:54:21 fixturedef = request._get_active_fixturedef(argname) 15:54:21 # Saves requested fixtures in a list so we later can add our finalizer 15:54:21 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:21 # down first. This is generally handled by SetupState, but still currently 15:54:21 # needed when this fixture is not parametrized but depends on a parametrized 15:54:21 # fixture. 15:54:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:21 15:54:21 # Check for (and return) cached value/exception. 15:54:21 if self.cached_result is not None: 15:54:21 request_cache_key = self.cache_key(request) 15:54:21 cache_key = self.cached_result[1] 15:54:21 try: 15:54:21 # Attempt to make a normal == check: this might fail for objects 15:54:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:21 cache_hit = bool(request_cache_key == cache_key) 15:54:21 except (ValueError, RuntimeError): 15:54:21 # If the comparison raises, use 'is' as fallback. 15:54:21 cache_hit = request_cache_key is cache_key 15:54:21 15:54:21 if cache_hit: 15:54:21 if self.cached_result[2] is not None: 15:54:21 exc, exc_tb = self.cached_result[2] 15:54:21 raise exc.with_traceback(exc_tb) 15:54:21 else: 15:54:21 return self.cached_result[0] 15:54:21 # We have a previous but differently parametrized fixture instance 15:54:21 # so we need to tear it down before creating a new one. 15:54:21 self.finish(request) 15:54:21 assert self.cached_result is None 15:54:21 15:54:21 # Add finalizer to requested fixtures we saved previously. 15:54:21 # We make sure to do this after checking for cached value to avoid 15:54:21 # adding our finalizer multiple times. (#12135) 15:54:21 finalizer = functools.partial(self.finish, request=request) 15:54:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:21 parent_fixture.addfinalizer(finalizer) 15:54:21 15:54:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:21 # which is executed last. 15:54:21 > assert not self._finalizers 15:54:21 ^^^^^^^^^^^^^^^^^^^^ 15:54:21 E AssertionError 15:54:21 15:54:21 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:21 =========================== short test summary info ============================ 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 15:54:21 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 15:54:21 12 errors in 102.24s (0:01:42) 15:54:21 tests71: exit 1 (102.52 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4530 15:54:24 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 15:54:32 ==================================== ERRORS ==================================== 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 15:54:32 15:54:32 cls = 15:54:32 15:54:32 @classmethod 15:54:32 def setUpClass(cls): 15:54:32 > cls.processes = test_utils.start_tpce() 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 15:54:32 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 def start_tpce(): 15:54:32 if 'NO_ODL_STARTUP' in os.environ: 15:54:32 print('No OpenDaylight instance to start!') 15:54:32 return [] 15:54:32 print('starting OpenDaylight...') 15:54:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 15:54:32 process = start_lighty() 15:54:32 else: 15:54:32 process = start_karaf() 15:54:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 15:54:32 print('OpenDaylight started !') 15:54:32 else: 15:54:32 print('OpenDaylight failed to start !') 15:54:32 shutdown_process(process) 15:54:32 for pid in process_list: 15:54:32 shutdown_process(pid) 15:54:32 > sys.exit(1) 15:54:32 E SystemExit: 1 15:54:32 15:54:32 transportpce_tests/common/test_utils.py:234: SystemExit 15:54:32 ---------------------------- Captured stdout setup ----------------------------- 15:54:32 starting OpenDaylight... 15:54:32 starting KARAF (karaf221) TransportPCE build... 15:54:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba722aca0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba727fe20> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba990ef20> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba7229080> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba7228f40> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba722aca0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba990ef20> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba727e5c0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba727e840> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba722aca0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41940> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba727eb60> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba722aca0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41da0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba7229580> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41da0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba7229580> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba7229580> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c420c0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c420c0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41440> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41940> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41a80> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41760> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c40900> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c40e00> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c40900> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c409a0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c41120> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c40fe0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c40fe0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c42a20> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c411c0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c413a0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c409a0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c425c0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba72299e0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 15:54:32 15:54:32 cls = 15:54:32 func = . at 0x7f0ba6c422a0> 15:54:32 when = 'setup' 15:54:32 reraise = (, ) 15:54:32 15:54:32 @classmethod 15:54:32 def from_call( 15:54:32 cls, 15:54:32 func: Callable[[], TResult], 15:54:32 when: Literal["collect", "setup", "call", "teardown"], 15:54:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 15:54:32 ) -> CallInfo[TResult]: 15:54:32 """Call func, wrapping the result in a CallInfo. 15:54:32 15:54:32 :param func: 15:54:32 The function to call. Called without arguments. 15:54:32 :type func: Callable[[], _pytest.runner.TResult] 15:54:32 :param when: 15:54:32 The phase in which the function is called. 15:54:32 :param reraise: 15:54:32 Exception or exceptions that shall propagate if raised by the 15:54:32 function, instead of being wrapped in the CallInfo. 15:54:32 """ 15:54:32 excinfo = None 15:54:32 instant = timing.Instant() 15:54:32 try: 15:54:32 > result: TResult | None = func() 15:54:32 ^^^^^^ 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 15:54:32 lambda: runtest_hook(item=item, **kwds), 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 15:54:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 15:54:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 15:54:32 yield 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 15:54:32 return (yield) 15:54:32 ^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 15:54:32 item.session._setupstate.setup(item) 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 15:54:32 col.setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 15:54:32 super().setup() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 15:54:32 self._request._fillfixtures() 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 15:54:32 item.funcargs[argname] = self.getfixturevalue(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 15:54:32 fixturedef = self._get_active_fixturedef(argname) 15:54:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 15:54:32 fixturedef.execute(request=subrequest) 15:54:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 15:54:32 15:54:32 self = 15:54:32 request = > 15:54:32 15:54:32 def execute(self, request: SubRequest) -> FixtureValue: 15:54:32 """Return the value of this fixture, executing it if not cached.""" 15:54:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 15:54:32 # This needs to be done before checking if we have a cached value, since 15:54:32 # if a dependent fixture has their cache invalidated, e.g. due to 15:54:32 # parametrization, they finalize themselves and fixtures depending on it 15:54:32 # (which will likely include this fixture) setting `self.cached_result = None`. 15:54:32 # See #4871 15:54:32 requested_fixtures_that_should_finalize_us = [] 15:54:32 for argname in self.argnames: 15:54:32 fixturedef = request._get_active_fixturedef(argname) 15:54:32 # Saves requested fixtures in a list so we later can add our finalizer 15:54:32 # to them, ensuring that if a requested fixture gets torn down we get torn 15:54:32 # down first. This is generally handled by SetupState, but still currently 15:54:32 # needed when this fixture is not parametrized but depends on a parametrized 15:54:32 # fixture. 15:54:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 15:54:32 15:54:32 # Check for (and return) cached value/exception. 15:54:32 if self.cached_result is not None: 15:54:32 request_cache_key = self.cache_key(request) 15:54:32 cache_key = self.cached_result[1] 15:54:32 try: 15:54:32 # Attempt to make a normal == check: this might fail for objects 15:54:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 15:54:32 cache_hit = bool(request_cache_key == cache_key) 15:54:32 except (ValueError, RuntimeError): 15:54:32 # If the comparison raises, use 'is' as fallback. 15:54:32 cache_hit = request_cache_key is cache_key 15:54:32 15:54:32 if cache_hit: 15:54:32 if self.cached_result[2] is not None: 15:54:32 exc, exc_tb = self.cached_result[2] 15:54:32 raise exc.with_traceback(exc_tb) 15:54:32 else: 15:54:32 return self.cached_result[0] 15:54:32 # We have a previous but differently parametrized fixture instance 15:54:32 # so we need to tear it down before creating a new one. 15:54:32 self.finish(request) 15:54:32 assert self.cached_result is None 15:54:32 15:54:32 # Add finalizer to requested fixtures we saved previously. 15:54:32 # We make sure to do this after checking for cached value to avoid 15:54:32 # adding our finalizer multiple times. (#12135) 15:54:32 finalizer = functools.partial(self.finish, request=request) 15:54:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 15:54:32 parent_fixture.addfinalizer(finalizer) 15:54:32 15:54:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 15:54:32 # which is executed last. 15:54:32 > assert not self._finalizers 15:54:32 ^^^^^^^^^^^^^^^^^^^^ 15:54:32 E AssertionError 15:54:32 15:54:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 15:54:32 =========================== short test summary info ============================ 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 15:54:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 15:54:32 51 errors in 109.29s (0:01:49) 15:54:33 tests71: FAIL ✖ in 1 minute 49.3 seconds 15:54:33 tests_hybrid: exit 1 (109.55 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4546 15:54:33 buildcontroller: FAIL code 1 (8.96=setup[8.39]+cmd[0.57] seconds) 15:54:33 sims: OK (11.76=setup[7.05]+cmd[4.71] seconds) 15:54:33 testsPCE: FAIL code 1 (170.73=setup[46.67]+cmd[124.06] seconds) 15:54:33 build_karaf_tests221: FAIL code 127 (6.46=setup[6.45]+cmd[0.00] seconds) 15:54:33 tests_tapi: FAIL code 1 (118.09=setup[6.62]+cmd[111.47] seconds) 15:54:33 tests221: FAIL code 1 (113.93=setup[7.18]+cmd[106.75] seconds) 15:54:33 build_karaf_tests71: FAIL code 127 (6.41=setup[6.39]+cmd[0.01] seconds) 15:54:33 tests71: FAIL code 1 (109.30=setup[6.79]+cmd[102.52] seconds) 15:54:33 build_karaf_tests200: FAIL code 127 (6.52=setup[6.52]+cmd[0.00] seconds) 15:54:33 tests200: FAIL code 1 (109.34=setup[7.10]+cmd[102.24] seconds) 15:54:33 tests_hybrid: FAIL code 1 (116.49=setup[6.95]+cmd[109.55] seconds) 15:54:33 buildlighty: FAIL code 9 (6.27=setup[6.26]+cmd[0.01] seconds) 15:54:33 docs: OK (17.26=setup[14.26]+cmd[3.00] seconds) 15:54:33 docs-linkcheck: OK (17.69=setup[13.63]+cmd[4.07] seconds) 15:54:33 checkbashisms: OK (3.28=setup[2.10]+cmd[0.00,0.04,1.14] seconds) 15:54:33 pre-commit: OK (55.80=setup[2.87]+cmd[0.00,0.00,44.74,8.18] seconds) 15:54:33 pylint: FAIL code 1 (20.74=setup[3.28]+cmd[17.47] seconds) 15:54:33 evaluation failed :( (549.54 seconds) 15:54:33 + tox_status=1 15:54:33 + echo '---> Completed tox runs' 15:54:33 ---> Completed tox runs 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/build_karaf_tests200/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=build_karaf_tests200 15:54:33 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/build_karaf_tests221/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=build_karaf_tests221 15:54:33 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/build_karaf_tests71/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=build_karaf_tests71 15:54:33 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/buildcontroller/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=buildcontroller 15:54:33 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/buildlighty/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=buildlighty 15:54:33 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/checkbashisms/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=checkbashisms 15:54:33 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/docs-linkcheck/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=docs-linkcheck 15:54:33 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/docs/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=docs 15:54:33 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/pre-commit/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=pre-commit 15:54:33 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/pylint/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=pylint 15:54:33 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/sims/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=sims 15:54:33 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/tests200/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=tests200 15:54:33 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/tests221/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=tests221 15:54:33 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/tests71/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=tests71 15:54:33 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/testsPCE/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=testsPCE 15:54:33 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/tests_hybrid/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=tests_hybrid 15:54:33 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 15:54:33 + for i in .tox/*/log 15:54:33 ++ echo .tox/tests_tapi/log 15:54:33 ++ awk -F/ '{print $2}' 15:54:33 + tox_env=tests_tapi 15:54:33 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 15:54:33 + DOC_DIR=docs/_build/html 15:54:33 + [[ -d docs/_build/html ]] 15:54:33 + echo '---> Archiving generated docs' 15:54:33 ---> Archiving generated docs 15:54:33 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 15:54:33 + echo '---> tox-run.sh ends' 15:54:33 ---> tox-run.sh ends 15:54:33 + test 1 -eq 0 15:54:33 + exit 1 15:54:33 ++ '[' 1 = 1 ']' 15:54:33 ++ '[' -x /usr/bin/clear_console ']' 15:54:33 ++ /usr/bin/clear_console -q 15:54:33 Build step 'Execute shell' marked build as failure 15:54:33 $ ssh-agent -k 15:54:33 unset SSH_AUTH_SOCK; 15:54:33 unset SSH_AGENT_PID; 15:54:33 echo Agent pid 1556 killed; 15:54:33 [ssh-agent] Stopped. 15:54:33 [PostBuildScript] - [INFO] Executing post build scripts. 15:54:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins7136266621093430258.sh 15:54:33 ---> sysstat.sh 15:54:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11669459627813166069.sh 15:54:33 ---> package-listing.sh 15:54:33 + '[' -f /etc/os-release ']' 15:54:33 + . /etc/os-release 15:54:33 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 15:54:33 ++ NAME=Ubuntu 15:54:33 ++ VERSION_ID=22.04 15:54:33 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 15:54:33 ++ VERSION_CODENAME=jammy 15:54:33 ++ ID=ubuntu 15:54:33 ++ ID_LIKE=debian 15:54:33 ++ HOME_URL=https://www.ubuntu.com/ 15:54:33 ++ SUPPORT_URL=https://help.ubuntu.com/ 15:54:33 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 15:54:33 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 15:54:33 ++ UBUNTU_CODENAME=jammy 15:54:33 + case " ${ID:-} ${ID_LIKE:-} " in 15:54:33 + OS_FAMILY=debian 15:54:33 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 15:54:33 + START_PACKAGES=/tmp/packages_start.txt 15:54:33 + END_PACKAGES=/tmp/packages_end.txt 15:54:33 + DIFF_PACKAGES=/tmp/packages_diff.txt 15:54:33 + PACKAGES=/tmp/packages_start.txt 15:54:33 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:54:33 + PACKAGES=/tmp/packages_end.txt 15:54:33 + case "${OS_FAMILY}" in 15:54:33 + dpkg -l 15:54:33 + grep '^ii' 15:54:33 + '[' -f /tmp/packages_start.txt ']' 15:54:33 + '[' -f /tmp/packages_end.txt ']' 15:54:33 + diff /tmp/packages_start.txt /tmp/packages_end.txt 15:54:33 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 15:54:33 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:54:33 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 15:54:33 + exit 0 15:54:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1292831797950669441.sh 15:54:33 ---> capture-instance-metadata.sh 15:54:33 Setup pyenv: 15:54:33 system 15:54:33 3.8.20 15:54:33 3.9.20 15:54:33 3.10.15 15:54:33 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:33 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wlas from file:/tmp/.os_lf_venv 15:54:33 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:35 lf-activate-venv(): INFO: Installing additional packages: lftools 15:54:46 lf-activate-venv(): INFO: Adding /tmp/venv-wlas/bin to PATH 15:54:46 INFO: Running in OpenStack, capturing instance metadata 15:54:46 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins11213889208203725934.sh 15:54:46 provisioning config files... 15:54:46 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6130 15:54:46 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config10696965410756003764tmp 15:54:46 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 15:54:46 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 15:54:46 provisioning config files... 15:54:47 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 15:54:47 [EnvInject] - Injecting environment variables from a build step. 15:54:47 [EnvInject] - Injecting as environment variables the properties content 15:54:47 SERVER_ID=logs 15:54:47 15:54:47 [EnvInject] - Variables injected successfully. 15:54:47 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14871770849175235447.sh 15:54:47 ---> create-netrc.sh 15:54:47 WARN: Log server credential not found. 15:54:47 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16582420306629243321.sh 15:54:47 ---> python-tools-install.sh 15:54:47 Setup pyenv: 15:54:47 system 15:54:47 3.8.20 15:54:47 3.9.20 15:54:47 3.10.15 15:54:47 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:47 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wlas from file:/tmp/.os_lf_venv 15:54:47 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:54:49 lf-activate-venv(): INFO: Installing additional packages: lftools 15:54:58 lf-activate-venv(): INFO: Adding /tmp/venv-wlas/bin to PATH 15:54:58 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins17972732356172154811.sh 15:54:58 ---> uv-install.sh 15:54:58 uv 0.12.23 is already installed 15:54:58 uvx 0.12.23 (x86_64-unknown-linux-gnu) 15:54:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17868214596960493330.sh 15:54:58 ---> sudo-logs.sh 15:54:58 Archiving 'sudo' log.. 15:54:58 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins3885475771719326507.sh 15:54:58 ---> job-cost.sh 15:54:58 INFO: Activating Python virtual environment... 15:54:58 Setup pyenv: 15:54:58 system 15:54:58 3.8.20 15:54:58 3.9.20 15:54:58 3.10.15 15:54:58 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:54:58 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wlas from file:/tmp/.os_lf_venv 15:54:58 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:00 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 15:55:06 lf-activate-venv(): INFO: Adding /tmp/venv-wlas/bin to PATH 15:55:06 INFO: No stack-cost file found 15:55:06 INFO: Instance uptime: 712s 15:55:06 INFO: Fetching instance metadata (attempt 1 of 3)... 15:55:06 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 15:55:06 INFO: Successfully fetched instance metadata 15:55:06 INFO: Instance type: v3-standard-4 15:55:06 INFO: Retrieving pricing info for: v3-standard-4 15:55:06 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 15:55:06 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=712 15:55:07 INFO: Successfully fetched Vexxhost pricing API 15:55:07 INFO: Retrieved cost: 0.11 15:55:07 INFO: Retrieved resource: v3-standard-4 15:55:07 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 15:55:07 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 15:55:07 INFO: Successfully archived job cost data 15:55:07 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6130,2026-10-06 15:55:07,v3-standard-4,712,0.11,0.00,FAILURE 15:55:07 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins4547715094221426876.sh 15:55:07 ---> logs-deploy.sh 15:55:07 Setup pyenv: 15:55:07 system 15:55:07 3.8.20 15:55:07 3.9.20 15:55:07 3.10.15 15:55:07 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 15:55:07 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-wlas from file:/tmp/.os_lf_venv 15:55:07 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 15:55:09 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 15:55:18 lf-activate-venv(): INFO: Adding /tmp/venv-wlas/bin to PATH 15:55:18 WARNING: Nexus logging server not set 15:55:18 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6130/ 15:55:18 INFO: archiving logs to S3 15:55:19 ---> uname -a: 15:55:19 Linux prd-ubuntu2204-docker-4c-16g-62468 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 15:55:19 15:55:19 15:55:19 ---> lscpu: 15:55:19 Architecture: x86_64 15:55:19 CPU op-mode(s): 32-bit, 64-bit 15:55:19 Address sizes: 40 bits physical, 48 bits virtual 15:55:19 Byte Order: Little Endian 15:55:19 CPU(s): 4 15:55:19 On-line CPU(s) list: 0-3 15:55:19 Vendor ID: AuthenticAMD 15:55:19 Model name: AMD EPYC-Rome Processor 15:55:19 CPU family: 23 15:55:19 Model: 49 15:55:19 Thread(s) per core: 1 15:55:19 Core(s) per socket: 1 15:55:19 Socket(s): 4 15:55:19 Stepping: 0 15:55:19 BogoMIPS: 5600.00 15:55:19 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean flushbyasid pausefilter pfthreshold v_vmsave_vmload vgif umip rdpid arch_capabilities 15:55:19 Virtualization: AMD-V 15:55:19 Hypervisor vendor: KVM 15:55:19 Virtualization type: full 15:55:19 L1d cache: 128 KiB (4 instances) 15:55:19 L1i cache: 128 KiB (4 instances) 15:55:19 L2 cache: 2 MiB (4 instances) 15:55:19 L3 cache: 64 MiB (4 instances) 15:55:19 NUMA node(s): 1 15:55:19 NUMA node0 CPU(s): 0-3 15:55:19 Vulnerability Gather data sampling: Not affected 15:55:19 Vulnerability Indirect target selection: Not affected 15:55:19 Vulnerability Itlb multihit: Not affected 15:55:19 Vulnerability L1tf: Not affected 15:55:19 Vulnerability Mds: Not affected 15:55:19 Vulnerability Meltdown: Not affected 15:55:19 Vulnerability Mmio stale data: Not affected 15:55:19 Vulnerability Reg file data sampling: Not affected 15:55:19 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 15:55:19 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 15:55:19 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 15:55:19 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 15:55:19 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 15:55:19 Vulnerability Srbds: Not affected 15:55:19 Vulnerability Tsa: Not affected 15:55:19 Vulnerability Tsx async abort: Not affected 15:55:19 Vulnerability Vmscape: Not affected 15:55:19 15:55:19 15:55:19 ---> nproc: 15:55:19 4 15:55:19 15:55:19 15:55:19 ---> df -h: 15:55:19 Filesystem Size Used Avail Use% Mounted on 15:55:19 tmpfs 1.6G 1.1M 1.6G 1% /run 15:55:19 /dev/vda1 78G 11G 67G 14% / 15:55:19 tmpfs 7.9G 0 7.9G 0% /dev/shm 15:55:19 tmpfs 5.0M 0 5.0M 0% /run/lock 15:55:19 /dev/vda15 105M 6.1M 99M 6% /boot/efi 15:55:19 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 15:55:19 15:55:19 15:55:19 ---> free -m: 15:55:19 total used free shared buff/cache available 15:55:19 Mem: 15989 698 9868 4 5422 14947 15:55:19 Swap: 1023 0 1023 15:55:19 15:55:19 15:55:19 ---> ip addr: 15:55:19 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 15:55:19 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 15:55:19 inet 127.0.0.1/8 scope host lo 15:55:19 valid_lft forever preferred_lft forever 15:55:19 inet6 ::1/128 scope host 15:55:19 valid_lft forever preferred_lft forever 15:55:19 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 15:55:19 link/ether fa:16:3e:18:71:78 brd ff:ff:ff:ff:ff:ff 15:55:19 altname enp0s3 15:55:19 inet 10.30.170.99/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 15:55:19 valid_lft 85684sec preferred_lft 85684sec 15:55:19 inet6 fe80::f816:3eff:fe18:7178/64 scope link 15:55:19 valid_lft forever preferred_lft forever 15:55:19 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 15:55:19 link/ether 1e:da:41:96:f4:04 brd ff:ff:ff:ff:ff:ff 15:55:19 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 15:55:19 valid_lft forever preferred_lft forever 15:55:19 inet6 fe80::1cda:41ff:fe96:f404/64 scope link 15:55:19 valid_lft forever preferred_lft forever 15:55:19 15:55:19 15:55:19 ---> sar -b -r -n DEV: 15:55:19 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62468) 10/06/26 _x86_64_ (4 CPU) 15:55:19 15:55:19 15:43:25 LINUX RESTART (4 CPU) 15:55:19 15:55:19 15:55:19 ---> sar -P ALL: 15:55:19 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62468) 10/06/26 _x86_64_ (4 CPU) 15:55:19 15:55:19 15:43:25 LINUX RESTART (4 CPU) 15:55:19 15:55:19 15:55:19